Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Using Singularity and Nextflow in the Farm #59

Open
ccbaumler opened this issue Apr 5, 2023 · 1 comment
Open

Using Singularity and Nextflow in the Farm #59

ccbaumler opened this issue Apr 5, 2023 · 1 comment

Comments

@ccbaumler
Copy link
Contributor

To use a Singularity container on the Farm simply run module avail | grep "singularity" followed by the version of singularity you would like to use that is available on the farm such as module load spack/singularity/3.8.3.

To create a singularity image (a .sif file), pull from the following repositories:
docker://* A container hosted on Docker Hub
shub://* A container hosted on Singularity Hub
oras://* A container hosted on a supporting OCI registry

$ singularity pull python-3.8.2.sif docker://python:3.8.2-slim-buster

See this for more information.

One extremely useful combination of Farm modules is singularity and nextflow. The below workflow allows

#see if the modules are on the Farm. Put "nextflow" and "singularity" between the quotation marks.
$ module avail | grep "<what-your-looking-for>"

#load these module to use nextflow. Then use nextflow's fetchngs to download sequences.
$ module load spack/singularity/3.8.3

$ module load nextflow/22.10.4

#visualize an accession list.
$ cat ids.csv
SRR9157333
SRR9157334
SRR9157335
SRR9157336
SRR9157337
SRR9157338
SRR9157339
SRR9157340
SRR9157345

#run nextflow's fetchngs with the command below.
$ nextflow run nf-core/fetchngs --input ids.csv --outdir fetchngs -profile singularity -r 1.9 --force_sratools_download
@ccbaumler
Copy link
Contributor Author

Some suggested materials from Mo on a similar subject:
As a start, I will recommend focusing only on docker.
This video is good to get started with implementation
https://youtu.be/gAkwW2tuIqE
And this playlist is good for learning the concepts
https://youtube.com/playlist?list=PL4cUxeGkcC9hxjeEtdHFNYMtCpjNBm3h7
These will be enough to get started with docker. Once grasped the concepts, you will search for any question very easily

If you want to dive into the details of both docker and Kubernetes, then these crash courses are so good
https://www.youtube.com/watch?v=kTp5xUtcalw&ab_channel=freeCodeCamp.org
Or Kubernetes only: https://www.youtube.com/watch?v=X48VuDVv0do&ab_channel=TechWorldwithNana

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant