question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Add singularity usage to docs

See original GitHub issue

Given that academic HPCs do not have root privileges it is not possible to run docker and one needs to use singularity. I think it would helpful to your user-base if you added a section on singularity to either the deepvariant-quick-start.md or README.md.

I had never used containers before today so the following would have been very helpful for me getting your tool up-and-running quicker:

Download an existing container from Docker Hub

singularity build deepvariant.simg docker://google/deepvariant

Run Deep Variant with Singularity in one command

singularity -s exec -B /usr/lib/locale/:/usr/lib/locale/  \
  deepvariant.simg \
  /opt/deepvariant/bin/run_deepvariant \
  --model_type=WGS \
  --ref=${INPUT_DIR}/ucsc.hg19.chr20.unittest.fasta \
  --reads=${INPUT_DIR}/NA12878_S1.chr20.10_10p1mb.bam \
  --regions "chr20:10,000,000-10,010,000" \
  --output_vcf=output.vcf.gz \
  --output_gvcf=output.g.vcf.gz 

Respectfully, Matthew

Issue Analytics

  • State:closed
  • Created 3 years ago
  • Comments:6

github_iconTop GitHub Comments

1reaction
pichuancommented, Mar 31, 2020

@moldach Actually, I think I might know the problem. Does your OUTPUT_DIR exist?

I suggest you add a line below:

OUTPUT_DIR="${PWD}/quickstart-output"
mkdir -p ${OUTPUT_DIR}

to first ensure the directory is created.

0reactions
pichuancommented, Mar 31, 2020

Hi @moldach somehow your logs above have a lot of spaces in the middle, making it hard to read.

It seems like the last step was looking for /scratch/moldach/bin/quickstart-output/output.vcf.gz but couldn’t find it.

I’ll walk through the steps again to see if I can reproduce your error, but meanwhile, can you try:

singularity run -B $PWD,/usr/lib/locale/ \

instead of

singularity run -B /usr/lib/locale/:/usr/lib/locale/  \

And see if it works for you? Thanks.

Read more comments on GitHub >

github_iconTop Results From Across the Web

Quick Start — Singularity container 3.0 documentation
Singularity's command line interface allows you to build and interact with containers transparently. You can run programs inside a container as if they...
Read more >
Singularity container - Read the Docs
A High Level View of Singularity ... The Singularity Usage Workflow ... Install a specific release · Install the development branch · Remove...
Read more >
Singularity containers — Nextflow 21.10.6 documentation
Singularity is able to use existing Docker images, and pull from Docker ... For example you can add the following lines in the...
Read more >
R – Packages with Singularity - FASRC DOCS
To run a R file using the Singularity container, you can use the command ... you can add your software installation in the...
Read more >
Singularity - CC Doc
Should you wish to use Singularity on your own computer, ... e.g., you need to add --docker-login after the Singularity build or pull ......
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found