Skip to content
Snippets Groups Projects
Commit 680563fe authored by van den Berg's avatar van den Berg
Browse files

Fix bug in whatshap task

parent 05f14ce2
No related branches found
No related tags found
No related merge requests found
...@@ -45,6 +45,8 @@ task Phase { ...@@ -45,6 +45,8 @@ task Phase {
} }
command { command {
set -e
whatshap phase \ whatshap phase \
~{vcf} \ ~{vcf} \
~{phaseInput} \ ~{phaseInput} \
...@@ -56,7 +58,8 @@ task Phase { ...@@ -56,7 +58,8 @@ task Phase {
~{if defined(sample) then ("--sample " + '"' + sample + '"') else ""} \ ~{if defined(sample) then ("--sample " + '"' + sample + '"') else ""} \
~{if defined(chromosome) then ("--chromosome " + '"' + chromosome + '"') else ""} \ ~{if defined(chromosome) then ("--chromosome " + '"' + chromosome + '"') else ""} \
~{if defined(threshold) then ("--threshold " + '"' + threshold + '"') else ""} \ ~{if defined(threshold) then ("--threshold " + '"' + threshold + '"') else ""} \
~{if defined(ped) then ("--ped " + '"' + ped + '"') else ""} \ ~{if defined(ped) then ("--ped " + '"' + ped + '"') else ""}
tabix -p vcf ~{outputVCF} tabix -p vcf ~{outputVCF}
} }
...@@ -159,13 +162,16 @@ task Haplotag { ...@@ -159,13 +162,16 @@ task Haplotag {
} }
command { command {
set -e
whatshap haplotag \ whatshap haplotag \
~{vcf} \ ~{vcf} \
~{alignments} \ ~{alignments} \
~{if defined(outputFile) then ("--output " + '"' + outputFile+ '"') else ""} \ ~{if defined(outputFile) then ("--output " + '"' + outputFile+ '"') else ""} \
~{if defined(reference) then ("--reference " + '"' + reference + '"') else ""} \ ~{if defined(reference) then ("--reference " + '"' + reference + '"') else ""} \
~{if defined(regions) then ("--regions " + '"' + regions + '"') else ""} \ ~{if defined(regions) then ("--regions " + '"' + regions + '"') else ""} \
~{if defined(sample) then ("--sample " + '"' + sample + '"') else ""} \ ~{if defined(sample) then ("--sample " + '"' + sample + '"') else ""}
python3 -c "import pysam; pysam.index('~{outputFile}')" python3 -c "import pysam; pysam.index('~{outputFile}')"
} }
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment