(alignment.getFirstOfPairStrand() != Strand.NONE);
// For paired coverage, see if the alignment is properly paired, and if it is the "leftmost" alignment
// (to prevent double-counting the pair).
if (pairedCoverage) {
ReadMate mate = alignment.getMate();
if (!alignment.isProperPair() || alignment.getMate() == null || alignment.getStart() > mate.getStart()) {
return false;
}
if (Math.abs(alignment.getInferredInsertSize()) > 10000) {
log.warn("Very large insert size: " + Math.abs(alignment.getInferredInsertSize()) +
" for read " + alignment.getReadName() + ". Skipped.");