public class SAMDecoderV1_0 extends SAMDecoder
| Constructor and Description |
|---|
SAMDecoderV1_0(Bundle inputBundle,
ReadsDecoderOptions readsDecoderOptions)
Create a V1.0 SAM decoder for the given input bundle.
|
| Modifier and Type | Method and Description |
|---|---|
void |
close()
Close any resources associated with this decoder.
|
SAMFileHeader |
getHeader()
Get the file header for this decoder.
|
HtsVersion |
getVersion()
Get the version of the file format supported by this decoder.
|
boolean |
hasIndex()
Return true if the underlying resource has an index.
|
boolean |
isQueryable()
Gte true if the underlying resource is queryable.
|
CloseableIterator<SAMRecord> |
iterator()
Get an iterator of all records in the underlying resource.
|
java.util.Optional<SAMRecord> |
queryMate(SAMRecord rec)
Fetch the mate for the given read.
|
CloseableIterator<SAMRecord> |
queryUnmapped()
Get an iterator of unmapped reads.
|
getDisplayName, getFileFormat, getInputBundle, getReadsDecoderOptionsclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitquery, query, query, query, queryContained, queryContained, queryContained, queryOverlapping, queryOverlapping, queryOverlapping, queryStartpublic SAMDecoderV1_0(Bundle inputBundle, ReadsDecoderOptions readsDecoderOptions)
BundleResourceType.ALIGNED_READS, and the resource must be an
appropriate format and version for this encoder (to find an encoder for a bundle, see
ReadsResolver.inputBundle - bundle to decoderreadsDecoderOptions - options to usepublic HtsVersion getVersion()
HtsDecoderpublic SAMFileHeader getHeader()
HtsDecoderHpublic CloseableIterator<SAMRecord> iterator()
HtsQuerypublic boolean isQueryable()
HtsQueryHtsQuery.hasIndex()public boolean hasIndex()
HtsQuerypublic void close()
HtsDecoderpublic CloseableIterator<SAMRecord> queryUnmapped()
ReadsDecoderBundle.public java.util.Optional<SAMRecord> queryMate(SAMRecord rec)
ReadsDecoderBundle.rec - the source record