johnne / its_workflow

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Amplicon data preprocessing and analysis workflow for Schneider et al.

This repository contains code to analyse the ITS amplicon sequencing data with DADA2 for further comparisons with RNA-seq data from the same samples. It uses data collected for Haas et al (2018), but using dada2 and Swarm clustering instead of OTU clustering.

Repository contents

The repository consists of two units that are run separately:

1. demultiplex_wf: Download and demultiplex raw data

The folder contains instructions on how to run the workflow as a docker container. It will download the raw data from the ENA and demultiplex the sequences into files per sample, as well as concatenate technical replicates.

2. workflow: ITS amplicon sequencing data preprocessing

The folder contains a snakemake workflow that will reproduce the preprocessing of the demultiplexed ITS amplicon sequencing data as used in the study.

How to use it

The workflow is run through snakemake, from the root folder of the repository (where this readme sits).

Using demultiplexed data under demultiplex_wf/data

To continue with the demultiplexed data, we need to move it from the demultiplex_wf subfolder.

mkdir data
mv demultiplex_wf/data/ data

Or we can edit the config/config.yaml file and point directly to the files:

data_dir: "demultiplex_wf/data"

Next we will create a conda environment ("its_wf") needed to execute the snakemake workflow, and then activate it:

conda env create -n its_wf -f environment.yml
conda activate its_wf

Once the conda environment has been created successfully, we can execute the workflow with the following command:

snakemake -pr -j 4 --use-conda

This will output the final count matrix and other results (such as sequences for every Swarm OTU and taxonomic assignments) into the results/ folder.

3. analysis: R scripts to analyse ITS and RNA data

The folder contains scripts to reproduce the figures in the publication.

About

License:MIT License


Languages

Language:R 74.3%Language:Python 22.8%Language:Dockerfile 1.8%Language:Shell 1.2%