Home

Awesome

demux-nf

Nextflow pipeline for demultiplexing Illumina Next-Gen sequencing data.

Usage

Clone this repository:

git clone --recursive https://github.com/NYU-Molecular-Pathology/demux-nf.git

Deployment

The included deploy recipe should be used to create a new directory for demultiplexing based on a currently existing sequencing run directory. Include arguments that describe the configuration for your sequencing run.

cd demux-nf
make deploy RUNID=170809_NB501073_0019_AH5FFYBGX3 SAMPLESHEET=SampleSheet.csv SEQTYPE=Archer

arguments:

This will first check that the specified run exists on the server before cloning into a new directory at the given production output location and configuring it for demultiplexing using the subsequent commands described here.

Run Workflow

Assuming you used make deploy or make config to prepare your demultiplexing directory, the following command can be used to automatically run the workflow based on the pre-defined settings and settings from your current system.

make run

Extra parameters to be passed to Nextflow can be supplied with the EP argument:

make run EP='--samplesheet SampleSheet.csv --runDir /path/to/sequencer/data/170809_NB501073_0019_AH5FFYBGX3'

To submit the parent Nextflow pipeline as a job on the HPC cluster:

make submit

# with a different submission queue:
make submit SUBQ=fn_long

# with a different submission time:
make submit SUBQ=cpu_long SUBTIME='--time=6-00:00:00'

For alternative run methods, consult the Makefile.

Configuration

Demultiplexing metadata for the workflow can be provided through several methods, evaluated in the following order:

nextflow run main.nf --runID 12345
{
    "runDir": "/path/to/sequencer/data/170809_NB501073_0019_AH5FFYBGX3",
    "samplesheet": "SampleSheet.csv",
    "runID": "170809_NB501073_0019_AH5FFYBGX3"
}

Extras

make config RUNDIR=/path/to/sequencer/data/170809_NB501073_0019_AH5FFYBGX3 SAMPLESHEET=SampleSheet.csv RUNID=170809_NB501073_0019_AH5FFYBGX3
make update
make finalize
make clean
make clean-all
make passed
make deploy-NGS580
make deliverable CLIENT=somelab SHEET=list_of_clients_samples.txt

Software

Required:

Optional; must be installed to system or available with Singularity containers: