public class IntervalListScattererByIntervalCount extends java.lang.Object implements IntervalListScatterer
IntervalList
by interval count so that resulting IntervalList
's have the same number of intervals in them.
An exception is made for the final interval list, which will always contain at least this number of intervals,
but may also contain the remainder.Constructor and Description |
---|
IntervalListScattererByIntervalCount() |
Modifier and Type | Method and Description |
---|---|
int |
deduceIdealSplitWeight(htsjdk.samtools.util.IntervalList intervalList,
int nCount)
A method that determines the ideal target "weight" of the output IntervalList.
|
long |
intervalWeight(htsjdk.samtools.util.Interval interval)
A method that defines the "weight" of an interval list for the purpose of scattering.
|
long |
listWeight(htsjdk.samtools.util.IntervalList intervalList)
A method that defines the "weight" of an interval for the purpose of scattering.
|
java.util.List<htsjdk.samtools.util.Interval> |
takeSome(htsjdk.samtools.util.Interval interval,
long idealSplitWeight,
long currentSize,
double projectSizeOfRemaining)
Figure out how much of the input interval to put into current list and how much to leave for the next interval list.
|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
preprocessIntervalList, scatter
public IntervalListScattererByIntervalCount()
public long intervalWeight(htsjdk.samtools.util.Interval interval)
IntervalListScatterer
intervalWeight
in interface IntervalListScatterer
public long listWeight(htsjdk.samtools.util.IntervalList intervalList)
IntervalListScatterer
listWeight
in interface IntervalListScatterer
public java.util.List<htsjdk.samtools.util.Interval> takeSome(htsjdk.samtools.util.Interval interval, long idealSplitWeight, long currentSize, double projectSizeOfRemaining)
IntervalListScatterer
takeSome
in interface IntervalListScatterer
public int deduceIdealSplitWeight(htsjdk.samtools.util.IntervalList intervalList, int nCount)
IntervalListScatterer
deduceIdealSplitWeight
in interface IntervalListScatterer
intervalList
- the IntervalList
that is about to get splitnCount
- the scatter count into which to split intervalListIntervalList
's