We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
2 parents 3f2e759 + 7103163 commit 724b247Copy full SHA for 724b247
pipes/WDL/tasks/tasks_assembly.wdl
@@ -904,6 +904,12 @@ task run_discordance {
904
905
if [ ! -f everything.vcf ]; then
906
# bcftools call snps while treating each RG as a separate sample
907
+
908
+ # first index the ref fasta, iff it contains non-N sequence
909
+ if [ $(grep -v '^>' "~{reference_fasta}" | tr -d '\nNn' | wc -c) != "0" ]; then
910
+ samtools faidx "~{reference_fasta}"
911
+ fi
912
913
bcftools mpileup \
914
-G readgroups.txt -d 10000 -a "FORMAT/DP,FORMAT/AD" \
915
-q 1 -m 2 -Ou \
0 commit comments