RR fix: push the header removal all the way into the inner loops so that we literally remove a read from the general header only if it was added to the polyploid header. Add comments.
This commit is contained in:
parent
1509153b4b
commit
ef680e1e13
|
|
@ -696,10 +696,11 @@ public class SlidingWindow {
|
|||
currentHaplotype++;
|
||||
}
|
||||
LinkedList<HeaderElement> header = read.getReadNegativeStrandFlag() ? headersNegStrand.get(haplotype) : headersPosStrand.get(haplotype);
|
||||
// add to the polyploid header
|
||||
addToHeader(header, read);
|
||||
// remove from the standard header so that we don't double count it
|
||||
removeFromHeader(windowHeader, read);
|
||||
}
|
||||
|
||||
removeFromHeader(windowHeader, read);
|
||||
}
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Reference in New Issue