Snakemake pipeline for ATAC-Seq

public public 1yr ago Version: v1.0.0 0 bookmarks

Snakemake Workflow for ATAC-Seq

A snakefile pipeline for ATAC-Seq.

Change the config.yaml file appropriately according to your data. Update replicate1.tsv and replicate2.tsv for Replicates 1 and Replicates 2 respectively. Update parameters of Genrich in the config file.

Then run: snakemake -jnumber_of_cores, for example for 5 cores use:

snakemake -j5

and for a dry run use:

snakemake -j1 -n

and to print the commands in a dry run use:

snakemake -j1 -n -p

To use another config file use:

snakemake -j1 -p --configfile configfilehere.yaml

For the sake reproducibility, use conda to pull same versions of tools. Snakemake and conda have to be installed in your system:

snakemake --cores --use-conda

Citation

If you use this pipeline, please cite us as follows:

Sherine Awad. (2022). SherineAwad/ATAC-Seq: v1.0.0 (v1.0.0). Zenodo. https://doi.org/10.5281/zenodo.5939988

Code Snippets

33
34
35
36
shell: 
  """
  trim_galore --gzip --retain_unpaired --trim1 --fastqc --fastqc_args "--outdir fastqc" -o galore --paired {input.r1} {input.r2}
  """
49
50
shell:
    "bowtie2 -x {params} -1 {input.r1} -2 {input.r2} -S {output}"
60
61
62
63
64
65
shell:
    """
    mkdir -p galore
    mkdir -p fastqc
    trim_galore --gzip --retain_unpaired --trim1 --fastqc --fastqc_args "--outdir fastqc" -o galore {input}
    """
76
77
shell:
   "bowtie2 -x {params.genome} -U {input} -S {output}"
87
88
shell:
    "samtools view {input[0]} -S -b > {output[0]}"
100
101
shell: 
   "samtools sort -T {params} -n -o {output} {input}"
120
121
122
123
124
125
126
shell:
   """
   Genrich -t {params[0]} -o {output[0]} -b {params[3]} -r -j -v -e {params[2]}  -q {params[5]} -a {params[6]} -l {params[7]}
   Genrich -t {params[1]} -o {output[1]} -b {params[4]} -r -j -v -e {params[2]}  -q {params[5]} -a {params[6]} -l {params[7]}
   bedtools intersect -a {params[3]} -b {params[4]} > intersect.out 
   bedtools subtract -a  {params[3]} -b {params[4]} > subtract.out 
   """  
ShowHide 3 more snippets with no or duplicated tags.

Login to post a comment if you would like to share your experience with this workflow.

Do you know this workflow well? If so, you can request seller status , and start supporting this workflow.

Free

Created: 1yr ago
Updated: 1yr ago
Maitainers: public
URL: https://github.com/SherineAwad/ATAC-Seq
Name: atac-seq
Version: v1.0.0
Badge:
workflow icon

Insert copied code into your website to add a link to this workflow.

Other Versions:
Downloaded: 0
Copyright: Public Domain
License: BSD 3-Clause "New" or "Revised" License
  • Future updates

Related Workflows

cellranger-snakemake-gke
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 ...