public interface Shard<T>
extends java.lang.Iterable<T>, htsjdk.samtools.util.Locatable
Modifier and Type | Method and Description |
---|---|
static java.util.List<ShardBoundary> |
divideIntervalIntoShards(SimpleInterval interval,
int shardSize,
int shardStep,
int shardPadding,
htsjdk.samtools.SAMSequenceDictionary dictionary)
Divide an interval into ShardBoundaries.
|
static java.util.List<ShardBoundary> |
divideIntervalIntoShards(SimpleInterval interval,
int shardSize,
int shardPadding,
htsjdk.samtools.SAMSequenceDictionary dictionary)
Divide an interval into ShardBoundaries.
|
default java.lang.String |
getContig() |
default int |
getEnd() |
SimpleInterval |
getInterval() |
SimpleInterval |
getPaddedInterval() |
default int |
getStart() |
SimpleInterval getInterval()
SimpleInterval getPaddedInterval()
default int getStart()
getStart
in interface htsjdk.samtools.util.Locatable
default int getEnd()
getEnd
in interface htsjdk.samtools.util.Locatable
default java.lang.String getContig()
getContig
in interface htsjdk.samtools.util.Locatable
static java.util.List<ShardBoundary> divideIntervalIntoShards(SimpleInterval interval, int shardSize, int shardPadding, htsjdk.samtools.SAMSequenceDictionary dictionary)
interval
- interval to shard; must be on the contig according to the provided dictionaryshardSize
- desired shard size; intervals larger than this will be divided into shards of up to this sizeshardPadding
- desired shard padding; each shard's interval will be padded on both sides by this number of bases (may be 0)dictionary
- sequence dictionary for readsShardBoundary
objects spanning the intervalstatic java.util.List<ShardBoundary> divideIntervalIntoShards(SimpleInterval interval, int shardSize, int shardStep, int shardPadding, htsjdk.samtools.SAMSequenceDictionary dictionary)
interval
- interval to shard; must be on the contig according to the provided dictionaryshardSize
- desired shard size; intervals larger than this will be divided into shards of up to this sizeshardStep
- each shard will begin this many bases away from the previous shardshardPadding
- desired shard padding; each shard's interval will be padded on both sides by this number of bases (may be 0)dictionary
- sequence dictionary for readsShardBoundary
objects spanning the interval