Coder Social home page Coder Social logo

16s-dada2's Introduction

Snakemake workflow: Dada2

Snakemake dada2 Build Status

This workflow is an implementation of the popular DADA2 tool. I followed the steps in the Tutorial. I use IDtaxa for taxonomic annotation.

dada2

Authors

  • Silas Kieser (@silask)

Usage

Step 1: Install workflow

If you simply want to use this workflow, download and extract the latest release. If you intend to modify and further develop this workflow, fork this repository. Please consider providing any generally applicable modifications via a pull request.

In any case, if you use this workflow in a paper, don't forget to give credits to the authors by citing the URL of this repository and, if available, its DOI (see above).

Requirements:

The pipeline has some dependencies which an be installed with conda:

conda env create -n dada2_env --file dependencies.yml

Databases:

For taxonomic annotation I use IDtaxa. A database e.g. the one from GTDB should be downloaded from here and the path added to the config file.

Step 2: Configure workflow

Configure the workflow according to your needs via editing the file config.yaml.

Create a sample table like this one. You can use the script prepare_sample_table.py for it. The scripts searches for fastq(.gz) files inside a folder (structure). If you have paired end files they should have R1/R2 somewhere in the filename. If might be a good idea to simplify sample names.

./prepare_sample_table.py path/to/fastq(.gz)files

The script creates a samples.tsv in the working directory. Here is an example.

R1 R2
sample1 /path/to/fastqs/sample1/sample1_R1.fastq.gz /path/to/fastqs/sample1/sample1_R2.fastq.gz
sample2 /path/to/fastqs/sample2_R1.fastq.gz /path/to/fastqs/sample2_R1.fastq.gz

Step 3: Execute workflow

Test your configuration by performing a dry-run via

snakemake --configfile path/config.yaml -n

Execute the workflow locally via

snakemake --configfile path/config.yaml --cores $N

using $N cores or run it in a cluster environment via

snakemake --configfile path/config.yaml --cluster qsub --jobs 100

or

snakemake --configfile path/config.yaml --drmaa --jobs 100

See the Snakemake documentation for further details.

Testing

You can test the pipeline with the script test.py.

Cite

dada2

Callahan, B., McMurdie, P., Rosen, M. et al. DADA2: High-resolution sample inference from Illumina amplicon data. Nat Methods 13, 581โ€“583 (2016). https://doi.org/10.1038/nmeth.3869

IDtaxa:

Murali, A., Bhargava, A. & Wright, E.S. IDTAXA: a novel approach for accurate taxonomic classification of microbiome sequences. Microbiome 6, 140 (2018). https://doi.org/10.1186/s40168-018-0521-5

16s-dada2's People

Contributors

colindaven avatar silask avatar

Watchers

 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.