Merge branch 'master' of ssh://gsa1/humgen/gsa-scr1/gsa-engineering/git/unstable
This commit is contained in:
commit
d901fed617
|
|
@ -94,6 +94,12 @@ public class ReadClipper {
|
||||||
if (left == right)
|
if (left == right)
|
||||||
return new SAMRecord(read.getHeader());
|
return new SAMRecord(read.getHeader());
|
||||||
SAMRecord leftTailRead = hardClipByReferenceCoordinates(right, -1);
|
SAMRecord leftTailRead = hardClipByReferenceCoordinates(right, -1);
|
||||||
|
|
||||||
|
// after clipping one tail, it is possible that the consequent hard clipping of adjacent deletions
|
||||||
|
// make the left cut index no longer part of the read. In that case, clip the read entirely.
|
||||||
|
if (left > leftTailRead.getAlignmentEnd())
|
||||||
|
return new SAMRecord(read.getHeader());
|
||||||
|
|
||||||
ReadClipper clipper = new ReadClipper(leftTailRead);
|
ReadClipper clipper = new ReadClipper(leftTailRead);
|
||||||
return clipper.hardClipByReferenceCoordinatesLeftTail(left);
|
return clipper.hardClipByReferenceCoordinatesLeftTail(left);
|
||||||
}
|
}
|
||||||
|
|
|
||||||
|
|
@ -975,4 +975,5 @@ public class ReadUtils {
|
||||||
AlignmentStartComparator comp = new AlignmentStartComparator();
|
AlignmentStartComparator comp = new AlignmentStartComparator();
|
||||||
return comp.compare(read1, read2);
|
return comp.compare(read1, read2);
|
||||||
}
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue