Class VCFCodecV4_3
java.lang.Object
htsjdk.beta.codecs.variants.vcf.VCFCodec
htsjdk.beta.codecs.variants.vcf.vcfv4_3.VCFCodecV4_3
- All Implemented Interfaces:
HtsCodec<VariantsDecoderOptions,,VariantsEncoderOptions> Upgradeable,VariantsCodec
VCF V4.3 codec.
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptiongetDecoder(Bundle inputBundle, VariantsDecoderOptions decoderOptions) Get anHtsDecoderto decode the provided inputs.getEncoder(Bundle outputBundle, VariantsEncoderOptions encoderOptions) Get anHtsEncoderto encode to the provided outputs.protected StringGet the signature string for this codec.Get the version of the file format returned byHtsCodec.getFileFormat()that is supported by this codec.booleanrunVersionUpgrade(HtsVersion sourceCodecVersion, HtsVersion targetCodecVersion) Methods inherited from class htsjdk.beta.codecs.variants.vcf.VCFCodec
canDecodeSignature, canDecodeURI, getFileFormat, getSignatureLength, getSignatureProbeLengthMethods 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, ownsURIMethods inherited from interface htsjdk.beta.plugin.variants.VariantsCodec
getContentType
-
Field Details
-
VCF_V43_VERSION
-
-
Constructor Details
-
VCFCodecV4_3
public VCFCodecV4_3()
-
-
Method Details
-
getVersion
Description copied from interface:HtsCodecGet the version of the file format returned byHtsCodec.getFileFormat()that is supported by this codec.- Returns:
- the file format version (
HtsVersion) supported by this codec
-
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.decoderOptions- options for the decoder to use- Returns:
- an
HtsDecoderthat can decode the provided inputs
-
getEncoder
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 encoderencoderOptions- encoder options to use- Returns:
- an
HtsEncodersuitable for writing to the provided outputs
-
runVersionUpgrade
-
getSignatureString
Description copied from class:VCFCodecGet the signature string for this codec.- Specified by:
getSignatureStringin classVCFCodec- Returns:
- the signature string for this codec
-