Coder Social home page Coder Social logo

mgnify-lr's Introduction

MGnify-LR Workflow

Maintainer: Martin Hölzer

Email: [email protected]

Input examples

  • one .fastq file per sample: --nano 'sample1.fastq'
  • paired end illumina: --illumina 'S_41_17_Cf*.R{1,2}.fastq.gz'

Hybrid data needs to have matching simpleNames such as sample1.fastq.gz (ONT) and sample1.R{1,2}.fastq.gz (Illumina).

Execution example

After pulling this git:

nextflow run main.nf --nano test_data/ERR3662306_1_small.fastq.gz -profile local,docker

or let nextflow pull this git:

nextflow run hoelzer/mgnify-lr --nano ~/.nextflow/assets/hoelzer/mgnify-lr/test_data/ERR3662306_1_small.fastq.gz --output ~/mgnify-lr_output -profile local,docker

to also decontaminate your reads and final assembly just add a --species like this:

nextflow run hoelzer/mgnify-lr --nano ~/.nextflow/assets/hoelzer/mgnify-lr/test_data/ERR3662306_1_small.fastq.gz --output ~/mgnify-lr_output --species eco -profile local,docker

Currently supported species with auto-download are:

  • hsa [Ensembl: Homo_sapiens.GRCh38.dna.primary_assembly]
  • mmu [Ensembl: Mus_musculus.GRCm38.dna.primary_assembly]
  • eco [Ensembl: Escherichia_coli_k_12.ASM80076v1.dna.toplevel]

Per default Illumina data will be cleaned for phiX phage and Nanopore data for DNA CS (DCS) spike-in. You can deactivate this via the --phix and --dcs flags.

Profiles

This workflow comes with some pre-defined profiles for local execution and execution on a HPC using Conda, Docker, and Singularity. You can combine different profiles to run the pipeline on different systems (local, LSF, SLURM, Cloud) using different technologies (Conda, Docker, Singularity).

For the most basic execution on a local machine using Docker use:

-profile local,docker

If you want to use Conda instead of Docker:

-profile local,conda

If you want to run on a HPC w/ LSF and Singularity use:

-profile lsf,singularity
# In that case you should also adjust --singularityCacheDir, --workdir, --databases to match your HPC environment

Workflow

Nanopore-only w/ decontamination

chart

Hybrid w/ metaSPAdes and decontamination

chart

Hybrid w/ flye and decontamination

chart

Execution examples of possible input and decontamination combinations

Below are execution examples for the test data in this repository. For each command ideel plots show the difference between the raw and polished assembly. Please keep in mind that this is only a small toy sample.

Nanopore-only

nextflow run main.nf --list --nano test_data/ont.csv --workdir work -profile local,docker --output results/test_ont-only

Nanopore-only w/ decontamination of ONT spike-in control

nextflow run main.nf --list --nano test_data/ont.csv --workdir work -profile local,docker -resume --output results/test_ont-only-clean --index_ont clean/ont/DCS.mmi --index_fna clean/assembly/DCS_FNA.mmi

Hybrid using SPAdes

nextflow run main.nf --list --nano test_data/ont.csv --illumina test_data/ill.csv --workdir work -profile local,docker -resume --output results/test_hybrid-spades 

Hybrid using SPAdes w/ decontamination of ONT and Illumina spike-in controls

nextflow run main.nf --list --nano test_data/ont.csv --illumina test_data/ill.csv --workdir work -profile local,docker -resume --output results/test_hybrid-spades-clean --index_ont clean/ont/DCS.mmi --index_fna clean/assembly/NC_001422_DCS.mmi --bbduk clean/NC_001422.fna.gz 

Hybrid using Flye

nextflow run main.nf --list --nano test_data/ont.csv --illumina test_data/ill.csv --workdir work -profile local,docker -resume --output results/test_hybrid-flye --assemblerHybrid flye

Hybrid using Flye w/ decontamination of ONT and Illumina spike-in controls

nextflow run main.nf --list --nano test_data/ont.csv --illumina test_data/ill.csv --workdir work -profile local,docker -resume --output results/test_hybrid-flye-clean --index_ont clean/ont/DCS.mmi --index_fna clean/assembly/NC_001422_DCS.mmi --bbduk clean/NC_001422.fna.gz --assemblerHybrid flye

mgnify-lr's People

Contributors

hoelzer avatar

Watchers

James Cloos avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.