Merge pull request #790 from broadinstitute/rp_nsubtil_fix-snp-detection
BQSR bug fix from @nsubtil
This commit is contained in:
commit
4a2ac38308
|
|
@ -313,6 +313,12 @@ public class BaseRecalibrator extends ReadWalker<Long, Long> implements NanoSche
|
||||||
final boolean[] knownSites = new boolean[readLength];
|
final boolean[] knownSites = new boolean[readLength];
|
||||||
Arrays.fill(knownSites, false);
|
Arrays.fill(knownSites, false);
|
||||||
for( final Feature f : features ) {
|
for( final Feature f : features ) {
|
||||||
|
if ((f.getStart() < read.getSoftStart() && f.getEnd() < read.getSoftStart()) ||
|
||||||
|
(f.getStart() > read.getSoftEnd() && f.getEnd() > read.getSoftEnd())) {
|
||||||
|
// feature is outside clipping window for the read, ignore
|
||||||
|
continue;
|
||||||
|
}
|
||||||
|
|
||||||
int featureStartOnRead = ReadUtils.getReadCoordinateForReferenceCoordinate(read.getSoftStart(), read.getCigar(), f.getStart(), ReadUtils.ClippingTail.LEFT_TAIL, true); // BUGBUG: should I use LEFT_TAIL here?
|
int featureStartOnRead = ReadUtils.getReadCoordinateForReferenceCoordinate(read.getSoftStart(), read.getCigar(), f.getStart(), ReadUtils.ClippingTail.LEFT_TAIL, true); // BUGBUG: should I use LEFT_TAIL here?
|
||||||
if( featureStartOnRead == ReadUtils.CLIPPING_GOAL_NOT_REACHED ) {
|
if( featureStartOnRead == ReadUtils.CLIPPING_GOAL_NOT_REACHED ) {
|
||||||
featureStartOnRead = 0;
|
featureStartOnRead = 0;
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue