Fixed bug that failed to reset an accumulator when crossing contig boundaries,
meaning that in special cases of shallow coverage, an interval might get dropped. git-svn-id: file:///humgen/gsa-scr1/gsa-engineering/svn_contents/trunk@2999 348d0f76-0448-11de-a6fe-93d51630548a
This commit is contained in:
parent
73d6167bd6
commit
45f70de6df
|
|
@ -24,6 +24,12 @@ public class IntervalSharder {
|
|||
FilePointer filePointer = null;
|
||||
|
||||
for(GenomeLoc location: loci) {
|
||||
// If crossing contigs, be sure to reset the filepointer that's been accumulating shard data.
|
||||
if(filePointer != null && filePointer.bin.referenceSequence != location.getContigIndex()) {
|
||||
filePointers.add(filePointer);
|
||||
filePointer = null;
|
||||
}
|
||||
|
||||
int locationStart = (int)location.getStart();
|
||||
final int locationStop = (int)location.getStop();
|
||||
|
||||
|
|
|
|||
Loading…
Reference in New Issue