Skip to content

Commit

Permalink
[refs #119] bash syntax bug fix
Browse files Browse the repository at this point in the history
  • Loading branch information
mark-welsh committed Nov 16, 2020
1 parent 70f010a commit 18b52dd
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions strelka/strelka2-snvs-indels.wdl
Original file line number Diff line number Diff line change
Expand Up @@ -62,10 +62,10 @@ task Strelka2Merged {
-I strelka2_run/results/variants/somatic.snvs.vcf.gz -I strelka2_run/results/variants/somatic.indels.vcf.gz \
--OUTPUT strelka2_run/results/variants/~{sample_id}.strelka2.somatic.merged.vcf

sed -r -i "s/^(#CHROM.*)TUMOR(.*$)/\1~{tumor_sample_id}\2/" strelka2_run/results/variants/~{sample_id}.strelka2.somatic.merged.vcf.gz && \
sed -r -i "s/^(#CHROM.*)TUMOR(.*$)/\1~{tumor_sample_id}\2/" strelka2_run/results/variants/~{sample_id}.strelka2.somatic.merged.vcf.gz

if [ -z ~{normal_sample_id} ]; then
sed -r -i "s/^(#CHROM.*)NORMAL(.*$)/\1~{normal_sample_id}\2/" strelka2_run/results/variants/~{sample_id}.strelka2.somatic.merged.vcf.gz && \
sed -r -i "s/^(#CHROM.*)NORMAL(.*$)/\1~{normal_sample_id}\2/" strelka2_run/results/variants/~{sample_id}.strelka2.somatic.merged.vcf.gz
fi
}

Expand Down

0 comments on commit 18b52dd

Please sign in to comment.