Package htsjdk.beta.codecs.hapref.fasta
Class FASTADecoderV1_0
java.lang.Object
htsjdk.beta.codecs.hapref.fasta.FASTADecoderV1_0
- All Implemented Interfaces:
HaploidReferenceDecoder,HtsDecoder<SAMSequenceDictionary,,ReferenceSequence> HtsQuery<ReferenceSequence>,Closeable,AutoCloseable,Iterable<ReferenceSequence>
The v1.0 FASTA decoder.
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidclose()Close any resources associated with this decoder.Get a user-friendly display name for this decoder.final StringGet 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 (seeBundleResourceTypeandBundleResource.getFileFormat()).Get the file header for this decoder.Get the version of the file format supported by this decoder.booleanhasIndex()Return true if the underlying resource has an index.booleanGte true if the underlying resource is queryable.iterator()Get an iterator of all records in the underlying resource.Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface htsjdk.beta.plugin.interval.HtsQuery
query, query, query, query, queryContained, queryContained, queryContained, queryOverlapping, queryOverlapping, queryOverlapping, queryStartMethods inherited from interface java.lang.Iterable
forEach, spliterator
-
Field Details
-
inputBundle
-
-
Constructor Details
-
FASTADecoderV1_0
-
-
Method Details
-
getDisplayName
Description copied from interface:HtsDecoderGet a user-friendly display name for this decoder.- Specified by:
getDisplayNamein interfaceHtsDecoder<SAMSequenceDictionary,ReferenceSequence> - Returns:
- a user-friendly display name for this decoder for use in error and warning messages
-
getFileFormat
Description copied from interface:HtsDecoderGet 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 (seeBundleResourceTypeandBundleResource.getFileFormat()).- Specified by:
getFileFormatin interfaceHtsDecoder<SAMSequenceDictionary,ReferenceSequence> - Returns:
- the name of the underlying file format handled by this decoder
-
getHeader
Description copied from interface:HtsDecoderGet the file header for this decoder.- Specified by:
getHeaderin interfaceHtsDecoder<SAMSequenceDictionary,ReferenceSequence> - Returns:
- the file header for this decoder, of type
H
-
getVersion
Description copied from interface:HtsDecoderGet the version of the file format supported by this decoder.- Specified by:
getVersionin interfaceHtsDecoder<SAMSequenceDictionary,ReferenceSequence>
-
iterator
Description copied from interface:HtsQueryGet an iterator of all records in the underlying resource.- Specified by:
iteratorin interfaceHtsQuery<ReferenceSequence>- Specified by:
iteratorin interfaceIterable<ReferenceSequence>- Returns:
- an iterator of all records in the underlying resource
-
isQueryable
public boolean isQueryable()Description copied from interface:HtsQueryGte true if the underlying resource is queryable.- Specified by:
isQueryablein interfaceHtsQuery<ReferenceSequence>- Returns:
- true if the underlying resource is queryable. this may be true even if the underlying
resource returns false for
HtsQuery.hasIndex()
-
hasIndex
public boolean hasIndex()Description copied from interface:HtsQueryReturn true if the underlying resource has an index.- Specified by:
hasIndexin interfaceHtsQuery<ReferenceSequence>- Returns:
- true if the underlying resource has an index
-
getReferenceSequenceFile
-
close
public void close()Description copied from interface:HtsDecoderClose any resources associated with this decoder.- Specified by:
closein interfaceAutoCloseable- Specified by:
closein interfaceCloseable- Specified by:
closein interfaceHtsDecoder<SAMSequenceDictionary,ReferenceSequence>
-