Class HtsgetBAMCodecV1_2
java.lang.Object
htsjdk.beta.codecs.reads.htsget.HtsgetBAMCodec
htsjdk.beta.codecs.reads.htsget.htsgetBAMV1_2.HtsgetBAMCodecV1_2
- All Implemented Interfaces:
HtsCodec<ReadsDecoderOptions,,ReadsEncoderOptions> ReadsCodec,Upgradeable
Version 1.2 of
BundleResourceType.FMT_READS_HTSGET_BAM codec.-
Field Summary
Fields inherited from class htsjdk.beta.codecs.reads.htsget.HtsgetBAMCodec
HTSGET_VERSION -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptiongetDecoder(Bundle inputBundle, ReadsDecoderOptions decodeOptions) Get anHtsDecoderto decode the provided inputs.HtsEncoder<?, ? extends HtsRecord> getEncoder(Bundle outputBundle, ReadsEncoderOptions encodeOptions) Get anHtsEncoderto encode to the provided outputs.Methods inherited from class htsjdk.beta.codecs.reads.htsget.HtsgetBAMCodec
canDecodeSignature, canDecodeURI, getFileFormat, getSignatureLength, getVersion, handlesURI, ownsURI, runVersionUpgradeMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface htsjdk.beta.plugin.HtsCodec
getDisplayName, getSignatureProbeLengthMethods inherited from interface htsjdk.beta.plugin.reads.ReadsCodec
getContentType
-
Constructor Details
-
HtsgetBAMCodecV1_2
public HtsgetBAMCodecV1_2()
-
-
Method Details
-
getDecoder
Description copied from interface:HtsCodecGet anHtsDecoderto decode the provided inputs. The input bundle must contain resources of the type required by this codec. To find a codec appropriate for decoding a given resource, use anHtsCodecResolverobtained from anHtsCodecRegistry.The framework will never call thi* method unless either
HtsCodec.ownsURI(IOPath), orHtsCodec.canDecodeURI(IOPath)andHtsCodec.canDecodeSignature(SignatureStream, String)(IOPath)} return true forinputBundle.- Parameters:
inputBundle- input to be decoded. To get a decoder for use with index queries that useHtsQuerymethods, the bundle must contain an index resource.decodeOptions- options for the decoder to use- Returns:
- an
HtsDecoderthat can decode the provided inputs
-
getEncoder
public HtsEncoder<?,? extends HtsRecord> getEncoder(Bundle outputBundle, ReadsEncoderOptions encodeOptions) Description copied from interface:HtsCodecGet anHtsEncoderto encode to the provided outputs. The output bundle must contain resources of the type required by this codec. To find a codec appropriate for encoding a given resource, use anHtsCodecResolverobtained from anHtsCodecRegistry. The framework will never call this method unless eitherHtsCodec.ownsURI(IOPath), orHtsCodec.canDecodeURI(IOPath)returned true foroutputBundle.- Parameters:
outputBundle- target output for the encoderencodeOptions- encoder options to use- Returns:
- an
HtsEncodersuitable for writing to the provided outputs
-