Advance one or more sliding windows to the next locus in an iterator, optionally skipping loci for which no windows have regions.
Advance one or more sliding windows to the next locus in an iterator, optionally skipping loci for which no windows have regions.
If this function returns Some(locus), then all the windows are now positioned at locus. If it returns None, then there are no more loci to process (we have reached the end of the loci iterator), and the positions of the sliding windows are undefined.
This function takes an iterator of loci instead of a single locus to enable it to efficiently skip entire ranges of loci when skipEmpty=true.
SlidingWindow instances to be advanced
iterator over loci. This function will advance the iterator at least once, and possibly many times if skipEmpty is true.
whether to skip over loci for which no window has any regions
Some(locus) if there was another locus left to process, otherwise None