Skip to content

Docker/Singularity containers for high-throughput sequencing pipelines in the cloud and on the ground

License

Notifications You must be signed in to change notification settings

iosonofabio/organic-box-factory

Repository files navigation

License: MIT

Logo

Organic Box Factory

https://iosonofabio.github.io/organic-box-factory/

High-throughput sequencing applications often involve computationally costly operations that cannot be performed on a local computer (e.g. a laptop); instead, they require a cluster of computers that work in parallel. Two cluster architectures are common in 2017: physical clusters, for instance Stanford's Sherlock, and cloud-based services such as Amazon Web Services and Google Computing Engine. Either way, access to high-throughput clusters is restricted, and installing and configuring all necessary software on every different platform can be (and typically is) a time-consuming and frustrating task. Thanks to light virtualization technologies like Docker, preconfigured images can be prepared and tested ahead of time. Whereas cloud systems virtualize the hardware and give customers superuser access to their computing instances and can run Docker without issues, physical clusters typically distribute only non-priviledged accounts and require a different virtualization scheme, a need that was recently filled by Singularity.

This repository offers access to a number of Docker and Singularity images to execute high-throughput sequencing pipelines as they are typically done in the Quake lab at Stanford, eliminating the need to install and configure the single programs and software libraries every time. Moreover, the repository tries to standardize and expose the common recipe used to build simultaneously both a Docker and a Singularity image, so each pipeline can be lifted to the cloud or grounded to a local cluster without any further configuration. Finally, each recipe is built and validated via continuous integration (CI) using Travis CI, to guarantee that the software works as planned.

At the moment the following pipelines are available - each pipeline is a different branch (the master branch is just an empty skeleton):

  • Build Status singlecell: scRNA-Seq on full-length transcripts (e.g. via SmartSeq2 libraries)
  • Build Status singlecell-10X: scRNA-Seq on 3'-end of transcripts using 10X Genomics libraries and cellranger software
  • Build Status bcl2fastq-2.19: demultiplex and call FastQ from illumina machines (version 2.19)
  • Build Status bcl2fastq-2.20: demultiplex and call FastQ from illumina machines (version 2.20)
  • Build Status cell-free RNA-Seq: cell-free RNA including picard-tools (for duplicate removal) and fastqc.
  • metagenomics: environmental samples including non-culturable organisms
  • Build Status stampy: map reads against highly variable genomic references.

Usage

If you are a user that would like to run a pipeline without bothering about operating systems, clusters, et al., just install the image from docker-hub or singularity-hub and run it.

Install an image

  • Docker: docker pull iosonofabio/organic-box-factory:<branch name>
  • Singularity: singularity pull shub://iosonofabio/organic-box-factory:<branch name>

where <branch name> is the name of the git branch/pipeline you want to install.

NOTE: you may need a development version of singularity to use the command pull.

Run software on the image

After installing an image:

  • Docker: docker run -v $(pwd)/projectdata:/data/projectdata --name imagename --rm iosonofabio/organic-box-factory:<branch name> <command>
  • Singularity: singularity exec <img filename> <command>

Run the default pipeline

Some images (e.g. singlecell) ship with a default pipeline command:

  • Docker: docker run -v $(pwd)/projectdata:/data/projectdata --name imagename --rm iosonofabio/organic-box-factory:<branch name> pipeline --help
  • Singularity: singularity exec <img filename> pipeline --help

Contributing/developers

If you are a developer searching for working examples of a pipeline:

  1. clone the repo from the branch you like
  2. if you cloned from master, rename travis.yml into .travis.yml (notice the dot)
  3. edit .travis.yml, consigure_image.sh, Dockerfile, Singularity, and tests/test.sh!

If you want to contribute to this repo, just open an issue on github. PRs always welcome!

About

Docker/Singularity containers for high-throughput sequencing pipelines in the cloud and on the ground

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published