@InternalAPI public abstract class VCFDecoder extends java.lang.Object implements VariantsDecoder
HtsContentType.VARIANT_CONTEXTS decoders.| Constructor and Description |
|---|
VCFDecoder(Bundle inputBundle,
AbstractVCFCodec vcfCodec,
VariantsDecoderOptions variantsDecoderOptions)
InternalAPI
Create a new VCF decoder.
|
| Modifier and Type | Method and Description |
|---|---|
void |
close()
Close any resources associated with this decoder.
|
java.lang.String |
getDisplayName()
Get a user-friendly display name for this decoder.
|
java.lang.String |
getFileFormat()
Get the name of the file format supported by this decoder.The format name defines the underlying
format handled by this decoder, and also corresponds to the format of the primary bundle
resource that is required when decoding (see
BundleResourceType
and BundleResource.getFileFormat()). |
VCFHeader |
getHeader()
Get the file header for this decoder.
|
Bundle |
getInputBundle()
Get the input
Bundle for this decoder. |
VariantsDecoderOptions |
getReadsDecoderOptions()
Get the
VariantsDecoderOptions 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<VariantContext> |
iterator()
Get an iterator of all records in the underlying resource.
|
CloseableIterator<VariantContext> |
query(java.util.List<HtsInterval> intervals,
HtsQueryRule queryRule)
Get an iterator over all records from the underlying resource that match the query arguments.
|
CloseableIterator<VariantContext> |
query(java.lang.String queryString)
Get an iterator over all records from the underlying resource that match the query string
|
CloseableIterator<VariantContext> |
queryStart(java.lang.String queryName,
long start)
Get an iterator over all records from the underlying resource that overlap the start position
|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitgetVersionquery, query, queryContained, queryContained, queryContained, queryOverlapping, queryOverlapping, queryOverlapping@InternalAPI public VCFDecoder(Bundle inputBundle, AbstractVCFCodec vcfCodec, VariantsDecoderOptions variantsDecoderOptions)
inputBundle - the input Bundle to decodevcfCodec - the AbstractVCFCodec to use for this decodervariantsDecoderOptions - the VariantsDecoderOptions for this decoderpublic final java.lang.String getFileFormat()
HtsDecoderBundleResourceType
and BundleResource.getFileFormat()).getFileFormat in interface HtsDecoder<VCFHeader,VariantContext>public final java.lang.String getDisplayName()
HtsDecodergetDisplayName in interface HtsDecoder<VCFHeader,VariantContext>public VCFHeader getHeader()
HtsDecodergetHeader in interface HtsDecoder<VCFHeader,VariantContext>Hpublic CloseableIterator<VariantContext> iterator()
HtsQueryiterator in interface HtsQuery<VariantContext>iterator in interface java.lang.Iterable<VariantContext>public boolean isQueryable()
HtsQueryisQueryable in interface HtsQuery<VariantContext>HtsQuery.hasIndex()public boolean hasIndex()
HtsQueryhasIndex in interface HtsQuery<VariantContext>public CloseableIterator<VariantContext> query(java.util.List<HtsInterval> intervals, HtsQueryRule queryRule)
HtsQueryquery in interface HtsQuery<VariantContext>intervals - list of intervals to matchqueryRule - query rule to use, from HtsQueryRulepublic CloseableIterator<VariantContext> query(java.lang.String queryString)
HtsQueryquery in interface HtsQuery<VariantContext>queryString - decoder specific query stringpublic CloseableIterator<VariantContext> queryStart(java.lang.String queryName, long start)
HtsQueryqueryStart in interface HtsQuery<VariantContext>queryName - name to matchstart - start position to overlappublic void close()
HtsDecoderclose in interface HtsDecoder<VCFHeader,VariantContext>close in interface java.io.Closeableclose in interface java.lang.AutoCloseablepublic Bundle getInputBundle()
Bundle for this decoder.Bundle for this decoderpublic VariantsDecoderOptions getReadsDecoderOptions()
VariantsDecoderOptions for this decoder.VariantsDecoderOptions for this decoder.