Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Gridss #15

Open
wants to merge 16 commits into
base: master
Choose a base branch
from
Open
2 changes: 2 additions & 0 deletions .test/config/config.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -36,6 +36,8 @@ calling:
activate: true
freebayes:
activate: true
gridss:
activate: true
# See https://varlociraptor.github.io/docs/calling/#generic-variant-calling
scenario: config/scenario.yaml
# See http://snpeff.sourceforge.net/SnpSift.html#filter
Expand Down
1 change: 1 addition & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,7 @@ This workflow detects genomic variants with [Delly](https://github.com/dellytool

* Felix Mölder (@FelixMoelder)
* Johannes Köster (@johanneskoester)
* Christopher Schröder (@christopher-schroeder)

## Usage

Expand Down
2 changes: 2 additions & 0 deletions config/config.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -46,6 +46,8 @@ calling:
activate: true
freebayes:
activate: true
gridss:
activate: true
# See https://varlociraptor.github.io/docs/calling/#generic-variant-calling
scenario: config/scenario.yaml
filter:
Expand Down
6 changes: 4 additions & 2 deletions workflow/Snakefile
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,7 @@ include: "rules/tmb.smk"
include: "rules/vega.smk"
include: "rules/utils.smk"
include: "rules/oncoprint.smk"
include: "rules/gridss.smk"

groups = samples["group"].unique()

Expand All @@ -30,8 +31,9 @@ if is_activated("oncoprint/stratify"):

rule all:
input:
get_gridss_targets(),
get_final_output(),
get_tmb_targets(),
expand("results/plots/oncoprint/{batch}.{event}.pdf",
event=config["calling"]["fdr-control"]["events"],
batch=batches)
event=config["calling"]["fdr-control"]["events"],
batch=batches)
12 changes: 12 additions & 0 deletions workflow/envs/gridss.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
channels:
- conda-forge
- bioconda
- r
dependencies:
- samtools=1.1.0
- ldc=1.13
- sambamba=0.7.1
- openjdk=11.0.1
- r=3.6.0
- bwa=0.7.17
- gridss=2.8
8 changes: 8 additions & 0 deletions workflow/rules/common.smk
Original file line number Diff line number Diff line change
Expand Up @@ -116,6 +116,14 @@ def get_tmb_targets():
return []


def get_gridss_targets():
if is_activated("calling/gridss"):
return expand("results/gridss_vcf/{group}.vcf",
group=groups)
else:
return []


def get_annotated_bcf(wildcards, group=None):
if group is None:
group = wildcards.group
Expand Down
Loading