Skip to content

Commit d340e39

Browse files
committed
Additional validation over cellsnp-lite VCFs
1 parent 2c5ee66 commit d340e39

File tree

1 file changed

+5
-4
lines changed

1 file changed

+5
-4
lines changed

singlecell/src/org/labkey/singlecell/pipeline/singlecell/VireoHandler.java

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -331,12 +331,13 @@ else if (outFiles.length > 1)
331331

332332
private void sortAndFixVcf(File vcf, ReferenceGenome genome, Logger log) throws PipelineJobException
333333
{
334-
// NOTE: this is required since cellsnp-lite creates a non-compliant header dictionary
335-
new UpdateVCFSequenceDictionary(log).execute(vcf, genome.getSequenceDictionary());
336-
334+
// This original VCF is generally not properly sorted, and has an invalid index. This is redundant, the VCF is not that large:
337335
try
338336
{
339-
SequencePipelineService.get().sortVcf(vcf, null, genome.getSequenceDictionary(), log);
337+
SequencePipelineService.get().sortROD(vcf, log, 2);
338+
SequenceAnalysisService.get().ensureVcfIndex(vcf, log, true);
339+
340+
new UpdateVCFSequenceDictionary(log).execute(vcf, genome.getSequenceDictionary());
340341
SequenceAnalysisService.get().ensureVcfIndex(vcf, log);
341342
}
342343
catch (IOException e)

0 commit comments

Comments
 (0)