bug fix for known-indels used as consenses
git-svn-id: file:///humgen/gsa-scr1/gsa-engineering/svn_contents/trunk@3245 348d0f76-0448-11de-a6fe-93d51630548a
This commit is contained in:
parent
f050beada6
commit
3adf7fbf64
|
|
@ -716,11 +716,11 @@ public class IndelRealigner extends ReadWalker<Integer, Integer> {
|
||||||
break;
|
break;
|
||||||
case I:
|
case I:
|
||||||
for (int j = 0; j < elementLength; j++) {
|
for (int j = 0; j < elementLength; j++) {
|
||||||
if ( ! BaseUtils.isRegularBase(readStr[altIdx+j]) ) {
|
if ( ! BaseUtils.isRegularBase(readStr[altIdx+j]) ) {
|
||||||
// Insertions with N's in them cause real problems sometimes; it's better to drop them altogether
|
// Insertions with N's in them cause real problems sometimes; it's better to drop them altogether
|
||||||
ok_flag=false;
|
ok_flag=false;
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
sb.append((char)readStr[altIdx + j]);
|
sb.append((char)readStr[altIdx + j]);
|
||||||
}
|
}
|
||||||
altIdx += elementLength;
|
altIdx += elementLength;
|
||||||
|
|
@ -759,7 +759,8 @@ public class IndelRealigner extends ReadWalker<Integer, Integer> {
|
||||||
cigar.add(new CigarElement(indelStr.length, CigarOperator.D));
|
cigar.add(new CigarElement(indelStr.length, CigarOperator.D));
|
||||||
}
|
}
|
||||||
else {
|
else {
|
||||||
sb.append(indelStr);
|
for ( byte b : indelStr )
|
||||||
|
sb.append((char)b);
|
||||||
cigar.add(new CigarElement(indelStr.length, CigarOperator.I));
|
cigar.add(new CigarElement(indelStr.length, CigarOperator.I));
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue