Skip to content

Commit a38c1aa

Browse files
committed
Tolerate non-bcftools indexes
1 parent c85c5a9 commit a38c1aa

File tree

1 file changed

+10
-1
lines changed

1 file changed

+10
-1
lines changed

SequenceAnalysis/src/org/labkey/sequenceanalysis/pipeline/ProcessVariantsHandler.java

Lines changed: 10 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -485,7 +485,16 @@ public static String getVCFLineCount(File vcf, Logger log, boolean passOnly, boo
485485
throw new PipelineJobException("bcftools VCF count cannot be used with passOnly");
486486
}
487487

488-
return countUsingBcfTools(vcf, log);
488+
try
489+
{
490+
return countUsingBcfTools(vcf, log);
491+
}
492+
catch (PipelineJobException e)
493+
{
494+
// ignore and continue:
495+
log.error("Cannot count variants using bcftools, this index might have been created using another tool");
496+
}
497+
489498
}
490499

491500
String cat = vcf.getName().endsWith(".gz") ? "zcat" : "cat";

0 commit comments

Comments
 (0)