Snakemake for demultiplexing 16S sequencing files using QIIME1 on the cluster.
Help improve this workflow!
This workflow has been published but could be further improved with some additional meta data:- Keyword(s) in categories input, output, operation, topic
You can help improve this workflow by suggesting the addition or removal of keywords, suggest changes and report issues, or request to become a maintainer of the Workflow .
-
Login to HTCF.
-
Move to your /scratch/ directory.
-
Clone the repo:
git clone --recurse-submodules git@github.com:RachelRodgers/demux-htcf-snake.git
- Make a directory to hold the snakemake profile:
mkdir -p ~/.config/snakemake/slurm_demux
- Edit line 2 of the config.yaml file to include your email address:
--mail-user=<yourEmailAddress>
- Copy the cluster submit and profile files to the appropriate locations:
cd demux-htcf-snake
cp config/config.yaml ~/.config/snakemake/slurm_demux
cp slurm-submit/*.py ~/.config/snakemake
-
Create a directory to hold your sequences to be demultiplexed and move your data to that directory.
-
Create a directory to hold your mapping file and copy your mapping file to that directory.
-
Edit the ./config/demux_config.yaml file appropriately.
-
Submit in one of two ways: a. With sbatch script:
sbatch submit_demux_snake.sbatch
b. Interactively:
# start an interactive session interactive # load snakemake 5.10 ml snakemake/5.10.0-python-3.6.5 # dry run (prints steps and stops) snakemake --profile slurm_demux -np # production run: snakemake --profile slurm_demux
-
See slurm output files in the logs_slurm/ directory which will generate inside the repository's directory.
Code Snippets
91 92 93 94 95 96 97 | shell: """ cat {input.r1} > {output.r1} cat {input.r2} > {output.r2} cat {input.i1} > {output.i1} cat {input.i2} > {output.i2} """ |
107 108 109 110 111 | shell: """ ml qiime bash ./workflow/scripts/extractCommand.sh """ |
121 122 123 124 125 126 127 128 129 130 131 132 | shell: """ ml qiime split_libraries_fastq.py \ -i {input.r1} \ -b {input.bc} \ -o {params.outdir} \ -m {MAP} \ --barcode_type {bc_type} \ --store_demultiplexed_fastq \ -r 999 -n 999 -q 0 -p 0.001 """ |
142 143 144 145 146 147 148 149 150 151 152 153 154 | shell: """ ml qiime split_libraries_fastq.py \ -i {input.r2} \ -b {input.bc} \ -o {params.outdir} \ -m {MAP} \ --barcode_type {bc_type} \ --store_demultiplexed_fastq \ --rev_comp \ -r 999 -n 999 -q 0 -p 0.001 """ |
164 165 166 167 168 169 170 171 | shell: """ ml qiime split_sequence_file_on_sample_ids.py \ -i {input} \ -o {params} \ --file_type fastq """ |
181 182 183 184 185 186 187 188 | shell: """ ml qiime split_sequence_file_on_sample_ids.py \ -i {input} \ -o {params} \ --file_type fastq """ |
197 198 199 200 201 202 | shell: """ rename 's/\.fastq$/_R1.fastq/' ./results/split_samples_R1/*fastq rename 's/\.fastq$/_R2.fastq/' ./results/split_samples_R2/*fastq """ |
211 212 213 214 215 216 | shell: """ cp ./results/split_samples_R1/*.fastq ./results/compressed/ mv ./results/split_samples_R2/*.fastq ./results/compressed/ gzip ./results/compressed/* """ |
Support
Do you know this workflow well? If so, you can
request seller status , and start supporting this workflow.
Created: 1yr ago
Updated: 1yr ago
Maitainers:
public
URL:
https://github.com/RachelRodgers/demux-htcf-snake
Name:
demux-htcf-snake
Version:
1
Downloaded:
0
Copyright:
Public Domain
License:
None
- Future updates
Related Workflows

ENCODE pipeline for histone marks developed for the psychENCODE project
psychip pipeline is an improved version of the ENCODE pipeline for histone marks developed for the psychENCODE project.
The o...

Near-real time tracking of SARS-CoV-2 in Connecticut
Repository containing scripts to perform near-real time tracking of SARS-CoV-2 in Connecticut using genomic data. This pipeli...

snakemake workflow to run cellranger on a given bucket using gke.
A Snakemake workflow for running cellranger on a given bucket using Google Kubernetes Engine. The usage of this workflow ...

ATLAS - Three commands to start analyzing your metagenome data
Metagenome-atlas is a easy-to-use metagenomic pipeline based on snakemake. It handles all steps from QC, Assembly, Binning, t...
raw sequence reads
Genome assembly
Annotation track
checkm2
gunc
prodigal
snakemake-wrapper-utils
MEGAHIT
Atlas
BBMap
Biopython
BioRuby
Bwa-mem2
cd-hit
CheckM
DAS
Diamond
eggNOG-mapper v2
MetaBAT 2
Minimap2
MMseqs
MultiQC
Pandas
Picard
pyfastx
SAMtools
SemiBin
Snakemake
SPAdes
SqueezeMeta
TADpole
VAMB
CONCOCT
ete3
gtdbtk
h5py
networkx
numpy
plotly
psutil
utils
metagenomics

RNA-seq workflow using STAR and DESeq2
This workflow performs a differential gene expression analysis with STAR and Deseq2. The usage of this workflow is described ...

This Snakemake pipeline implements the GATK best-practices workflow
This Snakemake pipeline implements the GATK best-practices workflow for calling small germline variants. The usage of thi...