Skip to content

Commit

Permalink
fix: add parantheses to catch error log of both commands
Browse files Browse the repository at this point in the history
Co-authored-by: Johannes Köster <[email protected]>
  • Loading branch information
BiancaStoecker and johanneskoester authored Sep 12, 2024
1 parent eb3632d commit f2e2f33
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions workflow/rules/eval.smk
Original file line number Diff line number Diff line change
Expand Up @@ -118,8 +118,8 @@ rule restrict_to_reference_contigs:
conda:
"../envs/bcftools.yaml"
shell:
"bcftools view --regions $(cut -f1 {input.ref_index} | tr '\\n' ',') {input.calls} | "
"bcftools reheader -f {input.ref_index} > {output} 2> {log}"
"(bcftools view --regions $(cut -f1 {input.ref_index} | tr '\\n' ',') {input.calls} |"
" bcftools reheader -f {input.ref_index} > {output}) 2> {log}"


rule normalize_calls:
Expand Down

0 comments on commit f2e2f33

Please sign in to comment.