public class HtsgetBAMDecoderV1_2 extends HtsgetBAMDecoder
BundleResourceType.READS_HTSGET_BAM decoder.| Constructor and Description |
|---|
HtsgetBAMDecoderV1_2(Bundle inputBundle,
ReadsDecoderOptions decoderOptions) |
| Modifier and Type | Method and Description |
|---|---|
void |
close()
Close any resources associated with this decoder.
|
SAMFileHeader |
getHeader()
Get the file header for 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.
|
CloseableIterator<SAMRecord> |
query(java.lang.String queryString)
Get an iterator over all records from the underlying resource that match the query string
|
java.util.Optional<SAMRecord> |
queryMate(SAMRecord rec)
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, getReadsDecoderOptions, getVersionclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitquery, query, queryContained, queryContained, queryContained, queryOverlapping, queryOverlapping, queryOverlappingpublic HtsgetBAMDecoderV1_2(Bundle inputBundle, ReadsDecoderOptions decoderOptions)
public SAMFileHeader getHeader()
HtsDecoderHpublic void close()
HtsDecoderpublic CloseableIterator<SAMRecord> iterator()
HtsQuerypublic boolean isQueryable()
HtsQueryHtsQuery.hasIndex()public boolean hasIndex()
HtsQuerypublic CloseableIterator<SAMRecord> query(java.lang.String queryString)
HtsQueryqueryString - decoder specific query stringpublic 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 rec)
ReadsDecoderBundle.rec - the source record