Snakemake workflow for annotating and filtering variant data

public public 1yr ago 0 bookmarks

Snakemake workflow for annotating and filtering variant data in small families according to different inheritance patterns using VASE .

Code Snippets

10
11
shell:
    "tabix -fp vcf {input} 2> {log}"
24
25
shell:
    "tabix -l {input[0]} > {output} 2> {log}"
37
38
shell:
    "tabix -fp vcf {input} 2> {log}"
61
62
shell:
    "bcftools view -O u {input.vcf} {wildcards.contig} | vase {params} -i - -o {output[0]} 2> {log}"
77
78
shell:
    "vase {params} -i {input.vcf} -o {output.vcf} 2> {log}"
SnakeMake From line 77 of rules/vase.smk
93
94
wrapper:
    "0.84.0/bio/picard/mergevcfs"
SnakeMake From line 93 of rules/vase.smk
109
110
wrapper:
  "0.84.0/bio/picard/mergevcfs"
SnakeMake From line 109 of rules/vase.smk
122
123
shell:
    "mv {input} {output} 2> {log}"
SnakeMake From line 122 of rules/vase.smk
137
138
shell:
    "vase_reporter {params} -o {wildcards.ext} {input} {output} 2> {log}"
SnakeMake From line 137 of rules/vase.smk
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
__author__ = "Johannes Köster"
__copyright__ = "Copyright 2018, Johannes Köster"
__email__ = "[email protected]"
__license__ = "MIT"


from snakemake.shell import shell
from snakemake_wrapper_utils.java import get_java_opts


inputs = " ".join("INPUT={}".format(f) for f in snakemake.input.vcfs)
log = snakemake.log_fmt_shell(stdout=False, stderr=True)
extra = snakemake.params.get("extra", "")
java_opts = get_java_opts(snakemake)

shell(
    "picard"
    " MergeVcfs"
    " {java_opts}"
    " {extra}"
    " {inputs}"
    " OUTPUT={snakemake.output[0]}"
    " {log}"
)
ShowHide 7 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/david-a-parry/vase_family_filtering_workflow
Name: vase_family_filtering_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 ...