public class BAMDecoderV1_0 extends BAMDecoder
| Constructor and Description |
|---|
BAMDecoderV1_0(Bundle inputBundle,
ReadsDecoderOptions readsDecoderOptions)
Create a V1.0 BAM 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.
|
CloseableIterator<SAMRecord> |
query(java.util.List<HtsInterval> intervals,
HtsQueryRule queryRule)
Get an iterator over all records from the underlying resource that match the query arguments.
|
java.util.Optional<SAMRecord> |
queryMate(SAMRecord samRecord)
Fetch the mate for the given read.
|
CloseableIterator<SAMRecord> |
queryStart(java.lang.String queryName,
long start)
Get an iterator over all records from the underlying resource that overlap the start position
|
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, queryContained, queryContained, queryContained, queryOverlapping, queryOverlapping, queryOverlappingpublic BAMDecoderV1_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 CloseableIterator<SAMRecord> query(java.util.List<HtsInterval> intervals, HtsQueryRule queryRule)
HtsQueryintervals - list of intervals to matchqueryRule - query rule to use, from HtsQueryRulepublic CloseableIterator<SAMRecord> queryStart(java.lang.String queryName, long start)
HtsQueryqueryName - name to matchstart - start position to overlappublic CloseableIterator<SAMRecord> queryUnmapped()
ReadsDecoderBundle.public java.util.Optional<SAMRecord> queryMate(SAMRecord samRecord)
ReadsDecoderBundle.samRecord - the source recordpublic void close()
HtsDecoder