Skip to content

Commit 53eadbc

Browse files
committed
Ensure bcftools liftover sorts VCF
1 parent 8bfdceb commit 53eadbc

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

SequenceAnalysis/src/org/labkey/sequenceanalysis/analysis/LiftoverHandler.java

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -28,6 +28,7 @@
2828
import org.labkey.api.sequenceanalysis.pipeline.ReferenceGenome;
2929
import org.labkey.api.sequenceanalysis.pipeline.SequenceAnalysisJobSupport;
3030
import org.labkey.api.sequenceanalysis.pipeline.SequenceOutputHandler;
31+
import org.labkey.api.sequenceanalysis.pipeline.SequencePipelineService;
3132
import org.labkey.api.sequenceanalysis.pipeline.VariantProcessingStep;
3233
import org.labkey.api.sequenceanalysis.run.SelectVariantsWrapper;
3334
import org.labkey.api.util.FileType;
@@ -333,6 +334,8 @@ public void liftOverVcf(JobContext ctx, ReferenceGenome targetGenome, ReferenceG
333334
{
334335
LiftoverBcfToolsWrapper wrapper = new LiftoverBcfToolsWrapper(job.getLogger());
335336
wrapper.doLiftover(currentVCF, chain, sourceGenome.getWorkingFastaFile(), targetGenome.getWorkingFastaFile(), unmappedOutput, output);
337+
338+
SequencePipelineService.get().sortVcf(output, null, targetGenome.getSequenceDictionary(), ctx.getLogger());
336339
}
337340
else
338341
{

0 commit comments

Comments
 (0)