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:
Eric Banks 2012-09-24 11:14:18 -04:00
parent 1509153b4b
commit ef680e1e13
1 changed files with 3 additions and 2 deletions

View File

@ -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);
}
}