public interface ReadsDataSource extends GATKDataSource<GATKRead>, java.lang.AutoCloseable
Modifier and Type | Method and Description |
---|---|
void |
close()
Shut down this data source permanently, closing all iterations and readers.
|
htsjdk.samtools.SAMFileHeader |
getHeader()
Returns the SAM header for this data source.
|
default htsjdk.samtools.SAMSequenceDictionary |
getSequenceDictionary()
Get the sequence dictionary for this ReadsDataSource
|
boolean |
isQueryableByInterval() |
java.util.Iterator<GATKRead> |
queryUnmapped() |
default void |
setTraversalBounds(java.util.List<SimpleInterval> intervals)
Restricts a traversal of this data source via
Iterable.iterator() to only return reads which overlap the given intervals. |
void |
setTraversalBounds(java.util.List<SimpleInterval> intervals,
boolean traverseUnmapped)
Restricts a traversal of this data source via
Iterable.iterator() to only return reads that overlap the given intervals,
and to unmapped reads if specified. |
default void |
setTraversalBounds(TraversalParameters traversalParameters)
Restricts a traversal of this data source via
Iterable.iterator() to only return reads that overlap the given intervals,
and to unmapped reads if specified. |
boolean |
supportsSerialIteration() |
boolean |
traversalIsBounded() |
query
void setTraversalBounds(java.util.List<SimpleInterval> intervals, boolean traverseUnmapped)
Iterable.iterator()
to only return reads that overlap the given intervals,
and to unmapped reads if specified.
Calls to GATKDataSource.query(org.broadinstitute.hellbender.utils.SimpleInterval)
are not affected by this method.intervals
- Our next full traversal will return reads overlapping these intervalstraverseUnmapped
- Our next full traversal will return unmapped reads (this affects only unmapped reads that
have no position -- unmapped reads that have the position of their mapped mates will be
included if the interval overlapping that position is included).default void setTraversalBounds(java.util.List<SimpleInterval> intervals)
Iterable.iterator()
to only return reads which overlap the given intervals.
Calls to GATKDataSource.query(org.broadinstitute.hellbender.utils.SimpleInterval)
are not affected by setting these intervals.intervals
- Our next full traversal will return only reads overlapping these intervalsdefault void setTraversalBounds(TraversalParameters traversalParameters)
Iterable.iterator()
to only return reads that overlap the given intervals,
and to unmapped reads if specified.
Calls to GATKDataSource.query(org.broadinstitute.hellbender.utils.SimpleInterval)
are not affected by this method.traversalParameters
- set of traversal parameters to control which reads get returned by the next call
to Iterable.iterator()
boolean traversalIsBounded()
Iterable.iterator()
will be restricted to reads that overlap intervals
as configured via setTraversalBounds(java.util.List<org.broadinstitute.hellbender.utils.SimpleInterval>, boolean)
, otherwise falseboolean isQueryableByInterval()
java.util.Iterator<GATKRead> queryUnmapped()
setTraversalBounds(java.util.List<org.broadinstitute.hellbender.utils.SimpleInterval>, boolean)
. The underlying file must be indexed.htsjdk.samtools.SAMFileHeader getHeader()
default htsjdk.samtools.SAMSequenceDictionary getSequenceDictionary()
boolean supportsSerialIteration()
ReadsDataSource
supports multiple iterations over the datavoid close()
close
in interface java.lang.AutoCloseable