Skip to content

Commit 1f2da5b

Browse files
committed
Ignore half-called GTs in KING
1 parent feff0ec commit 1f2da5b

File tree

1 file changed

+4
-3
lines changed

1 file changed

+4
-3
lines changed

mGAP/src/org/labkey/mgap/pipeline/AnnotationStep.java

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
package org.labkey.mgap.pipeline;
22

33
import htsjdk.samtools.util.Interval;
4+
import htsjdk.samtools.util.SequenceUtil;
45
import htsjdk.variant.vcf.VCFFileReader;
56
import org.apache.commons.lang3.StringUtils;
67
import org.jetbrains.annotations.Nullable;
@@ -332,11 +333,11 @@ public Output processVariants(File inputVCF, File outputDirectory, ReferenceGeno
332333
LiftoverBcfToolsWrapper liftoverVcfRunner = new LiftoverBcfToolsWrapper(getPipelineCtx().getLogger());
333334
liftoverVcfRunner.doLiftover(currentVcf, chainFile, genome.getWorkingFastaFile(), grch37Genome.getWorkingFastaFile(), liftoverRejects, liftedToGRCh37);
334335

335-
// NOTE: the resulting VCF is not necessarily in chromosome sort order:
336-
SequencePipelineService.get().sortVcf(liftedToGRCh37, null, genome.getSequenceDictionary(), getPipelineCtx().getLogger());
337-
338336
try
339337
{
338+
// NOTE: the resulting VCF is not necessarily in chromosome sort order:
339+
SequencePipelineService.get().sortROD(liftedToGRCh37, getPipelineCtx().getLogger(), 2);
340+
340341
SequenceAnalysisService.get().ensureVcfIndex(liftedToGRCh37, getPipelineCtx().getLogger());
341342
}
342343
catch (IOException e)

0 commit comments

Comments
 (0)