Skip to content

Commit 312eb47

Browse files
committed
Bugfix to handling of indels in lofreq merge
1 parent e759e99 commit 312eb47

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

SequenceAnalysis/src/org/labkey/sequenceanalysis/run/analysis/MergeLoFreqVcfHandler.java

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -209,7 +209,8 @@ protected String extractAlleleForPosition(VariantContext vc, Allele a, Logger lo
209209
{
210210
return Allele.SPAN_DEL.getBaseString();
211211
}
212-
else if (offset == 0 && a.length() == 1)
212+
//simple SNP or insertion
213+
else if (offset == 0 && a.length() >= vc.getReference().length())
213214
{
214215
return _ref.getBaseString().equals(a.getBaseString()) ? null : a.getBaseString();
215216
}

0 commit comments

Comments
 (0)