public class ActivityProfileStateIterator extends java.lang.Object implements java.util.Iterator<ActivityProfileState>
MultiIntervalShard
of GATKRead
, iterates over each locus within
that shard, and calculates the ActivityProfileState
there, using the provided AssemblyRegionEvaluator
to determine if each site is active.
Loads the reads from the shard as lazily as possible to minimize memory usage.
NOTE: the provided shard must have appropriate read filters set on it for this traversal type (ie., unmapped
and malformed reads must be filtered out).Constructor and Description |
---|
ActivityProfileStateIterator(MultiIntervalShard<GATKRead> readShard,
htsjdk.samtools.SAMFileHeader readHeader,
ReferenceDataSource reference,
FeatureManager features,
AssemblyRegionEvaluator evaluator)
Constructs an AssemblyRegionIterator over a provided read shard
|
Modifier and Type | Method and Description |
---|---|
boolean |
hasNext() |
ActivityProfileState |
next() |
void |
remove() |
public ActivityProfileStateIterator(MultiIntervalShard<GATKRead> readShard, htsjdk.samtools.SAMFileHeader readHeader, ReferenceDataSource reference, FeatureManager features, AssemblyRegionEvaluator evaluator)
readShard
- MultiIntervalShard containing the reads that will go into the assembly regions.
Must have a MAPPED filter set on it.readHeader
- header for the readsreference
- source of reference bases (may be null)features
- source of arbitrary features (may be null)evaluator
- evaluator used to determine whether a locus is activepublic boolean hasNext()
hasNext
in interface java.util.Iterator<ActivityProfileState>
public ActivityProfileState next()
next
in interface java.util.Iterator<ActivityProfileState>
public void remove()
remove
in interface java.util.Iterator<ActivityProfileState>