Skip to content

Commit

Permalink
fix: add nofilter flag for variant calls (#505)
Browse files Browse the repository at this point in the history
* fix: add nofilter flag for varaint calls

* add {reference} instead of main

* fix typo
  • Loading branch information
thomasbtf authored Mar 24, 2022
1 parent 97fdaac commit 381007c
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion workflow/rules/common.smk
Original file line number Diff line number Diff line change
Expand Up @@ -601,8 +601,11 @@ def get_target_events(wildcards):


def get_control_fdr_input(wildcards):
if wildcards.reference == "main":
if wildcards.reference == "main" and wildcards.filter != "nofilter":
return "results/{date}/filtered-calls/ref~{reference}/annot~{annotation}/{sample}.{filter}.bcf"
elif wildcards.reference == "main" and wildcards.filter == "nofilter":
# use directly the annotated output, instead of the filtered one
return "results/{date}/annotated-calls/ref~{reference}/annot~{annotation}/{sample}.bcf"
else:
# If reference is not main, we are polishing an assembly.
# Here, there is no need to structural variants or annotation based filtering.
Expand Down

0 comments on commit 381007c

Please sign in to comment.