Fix for homopolymer bug: ref was lowercase, alt allele was uppercase, so alt != ref. Yuck.
This is a temporary fix - pushed more elegant solution over to Matt. git-svn-id: file:///humgen/gsa-scr1/gsa-engineering/svn_contents/trunk@2360 348d0f76-0448-11de-a6fe-93d51630548a
This commit is contained in:
parent
a810586418
commit
9b0bdbbf29
|
|
@ -39,14 +39,14 @@ public class HomopolymerRun extends StandardVariantAnnotation {
|
|||
|
||||
int leftRun = 0;
|
||||
for ( int i = refBasePos - 1; i >= 0; i--) {
|
||||
if ( bases[i] != altAllele )
|
||||
if ( Character.toUpperCase(bases[i]) != altAllele )
|
||||
break;
|
||||
leftRun++;
|
||||
}
|
||||
|
||||
int rightRun = 0;
|
||||
for ( int i = refBasePos + 1; i < bases.length; i++) {
|
||||
if ( bases[i] != altAllele )
|
||||
if ( Character.toUpperCase(bases[i]) != altAllele )
|
||||
break;
|
||||
rightRun++;
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in New Issue