Fusarium Genome DNA-seq QC, Alignment, and Variant Calling Workflow Using Snakemake

public public 1yr ago 0 bookmarks

Fusarium_workflow

A basic snakemake file for QC, Alingment and Variant calling on DNAseq data of F.oxy.genome needs conda and snakemake to run

snakemake --use-conda -j {no-of-threads}

Code Snippets

34
35
shell:
    "mkdir -p fastqc_reports && fastqc {input.read1} {input.read2} {input.trim1} {input.trim2} -o fastqc_reports"
46
47
48
49
shell:
    "mkdir -p trimmed_reads && \
    fastp -i {input.read1} -o {output.out1}\
    -I {input.read2} -O {output.out2}"
65
66
67
shell:
    "mkdir -p bowtie_index && \
    bowtie2-build {input} {params}"
85
86
87
shell:
    "mkdir -p aligned_files && \
    bowtie2 -x {params} -1 {input.read1} -2 {input.read2} -S {output}"
97
98
99
shell:
    "samtools view --bam {input.sam} |  samtools sort - > {output.sorted_bam} && \
    samtools index {output.sorted_bam}"
109
110
111
shell:
    "{gatkDir}/gatk CreateSequenceDictionary -R {input} && \
    samtools faidx {input}"
121
122
123
shell:
    "mkdir -p MD_metrics && \
    picard MarkDuplicates -I {input} -M {output.metric} -O {output.md}"
132
133
shell:
    "picard SortSam -I {input} -O {output.bam} -SO coordinate"
142
143
144
145
shell:
    "picard AddOrReplaceReadGroups -I {input.sorted_bam} -O {output.sorted_rg_bam} \
    -LB {wildcards.sample} -PL illumina -PU null -SM {wildcards.sample} && \
    samtools index {output.sorted_rg_bam}"
157
158
159
shell:
    "mkdir -p VCF && \ 
    {gatkDir}/gatk HaplotypeCaller -I {input.bam} -R {input.ref} -O {output} -ploidy 1"
168
169
170
171
172
173
shell:
    "{gatkDir}/gatk VariantFiltration \
    -V {input.vcf} \
    -O {output} \
    -filter "QD<2.0 && AF<1.0 && FS>6.0 && MQ<40.0 && MQRankSum<-12.5 && ReadPosRankSum<-8.0" \
    --filter-name "my_filter"
185
186
187
188
189
190
shell:
    "{gatkDir}/gatk SelectVariants \
     -R {input.ref} \
     -V {input.vcf} \
     --select-type-to-include SNP \
     -O {output}"
ShowHide 6 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/ravenclown/Fusarium_workflow
Name: fusarium_workflow
Version: 1
Badge:
workflow icon

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

Downloaded: 0
Copyright: Public Domain
License: None
  • 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 ...