Skip to content

Commit 9f5f325

Browse files
committed
Account for difference between hg19 and GRCh37 MT contigs
1 parent 99cabf0 commit 9f5f325

File tree

3 files changed

+7
-6
lines changed

3 files changed

+7
-6
lines changed

SequenceAnalysis/pipeline_code/sequence_tools_install.sh

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -486,10 +486,10 @@ then
486486
rm -Rf bcftools*
487487
rm -Rf $LKTOOLS_DIR/bcftools
488488

489-
wget $WGET_OPTS https://github.com/samtools/bcftools/releases/download/1.18/bcftools-1.18.tar.bz2
490-
tar xjvf bcftools-1.18.tar.bz2
491-
chmod 755 bcftools-1.18
492-
cd bcftools-1.18
489+
wget $WGET_OPTS https://github.com/samtools/bcftools/releases/download/1.20/bcftools-1.20.tar.bz2
490+
tar xjvf bcftools-1.20.tar.bz2
491+
chmod 755 bcftools-1.20
492+
cd bcftools-1.20
493493
rm -f plugins/liftover.c
494494
wget $WGET_OPTS -P plugins https://raw.githubusercontent.com/freeseek/score/master/liftover.c
495495

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -215,7 +215,7 @@ else if (_vcfFileType.isType(f.getFile()))
215215
}
216216

217217
File lifted = new File(outDir, baseName + ".lifted-" + targetGenomeId + ext);
218-
File unmappedOutput = doNotRetainUnmapped ? new File(outDir, baseName + ".unmapped-" + targetGenomeId + ext) : null;
218+
File unmappedOutput = doNotRetainUnmapped ? null : new File(outDir, baseName + ".unmapped-" + targetGenomeId + ext);
219219

220220
try
221221
{

SequenceAnalysis/src/org/labkey/sequenceanalysis/util/ChainFileValidator.java

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -420,7 +420,8 @@ else if (refName.endsWith("_alt"))
420420
refName = StringUtils.join(Arrays.copyOfRange(tokens, 1, tokens.length), "_");
421421
}
422422

423-
if (refName.equals("chrM"))
423+
// NOTE: hg19 and GRCh37 have different MT contigs. chrM is the legacy version.
424+
if (refName.equals("chrMT"))
424425
{
425426
return "MT";
426427
}

0 commit comments

Comments
 (0)