Simple snakemake workflow for SNP calling, annotation and visualization.

public public 1yr ago Version: 2 0 bookmarks

Simple snakemake workflow for SNP calling, annotation and visualization.

Code Snippets

26
27
28
29
30
shell:
    """
    echo "Input Fastq: {input.fq} "
    fastqc -o 010.fastqc {input.fq}
    """
43
44
45
46
47
48
49
shell:
    """
    bwa mem {params.ref} {input.fq} \
        | samtools sort - \
        > {output.bam}
    samtools index {output.bam}
    """
59
60
61
62
63
shell:
    """
    bcftools mpileup -Ou -f {input.ref} {input.bams} \
         | bcftools call -mv -Ov -o {output.vcf}
    """
74
75
76
77
78
79
80
81
82
shell:
    """
    ( cat {input.vcf} \
       | vt decompose - \
       | vt normalize -n -r {input.ref} - \
       | vt uniq - \
       | vt view -f "QUAL>20" -h - \
       > {output.vcf} )
    """
100
101
102
103
104
105
106
107
108
109
110
111
shell:
    """
    mkdir -p 050.snpeff

    java -Xmx4096m -jar \
        {params.snpeff_jar} eff GRCh38.99 \
        -dataDir {params.snpeff_db_folder} \
        {input.vcf} > {output.vcf}

    # move output files to the snpeff output folder
    mv snpEff_genes.txt snpEff_summary.html 050.snpeff
    """
SnakeMake From line 100 of main/Snakefile
121
122
123
124
125
126
127
128
shell:
    """
    mkdir -p 060.stats

    bcftools stats -s - {input.vcf} > {output.stats}

    plot-vcfstats -P -p 060.stats {output.stats}
    """
ShowHide 1 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/domivika/Snakemake
Name: snakemake
Version: 2
Badge:
workflow icon

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

Other Versions:
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 ...