public class VCFCodecV3_3 extends VCFCodec
| Modifier and Type | Field and Description |
|---|---|
static HtsVersion |
VCF_V33_VERSION |
| Constructor and Description |
|---|
VCFCodecV3_3() |
| Modifier and Type | Method and Description |
|---|---|
VCFDecoder |
getDecoder(Bundle inputBundle,
VariantsDecoderOptions decoderOptions)
Get an
HtsDecoder to decode the provided inputs. |
VCFEncoder |
getEncoder(Bundle outputBundle,
VariantsEncoderOptions encoderOptions)
Get an
HtsEncoder to encode to the provided outputs. |
protected java.lang.String |
getSignatureString()
Get the signature string for this codec.
|
HtsVersion |
getVersion()
Get the version of the file format returned by
HtsCodec.getFileFormat() that is supported by this codec. |
boolean |
runVersionUpgrade(HtsVersion sourceCodecVersion,
HtsVersion targetCodecVersion) |
canDecodeSignature, canDecodeURI, getFileFormat, getSignatureLength, getSignatureProbeLengthclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitgetContentTypegetDisplayName, ownsURIpublic static final HtsVersion VCF_V33_VERSION
public HtsVersion getVersion()
HtsCodecHtsCodec.getFileFormat() that is supported by this codec.HtsVersion) supported by this codecpublic VCFDecoder getDecoder(Bundle inputBundle, VariantsDecoderOptions decoderOptions)
HtsCodecHtsDecoder to 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 an HtsCodecResolver obtained
from an HtsCodecRegistry.
The framework will never call thi* method unless either HtsCodec.ownsURI(IOPath), or
HtsCodec.canDecodeURI(IOPath) and HtsCodec.canDecodeSignature(SignatureStream, String) (IOPath)}
return true for inputBundle.
inputBundle - input to be decoded. To get a decoder for use with index queries that use
HtsQuery methods, the bundle must contain
an index resource.decoderOptions - options for the decoder to useHtsDecoder that can decode the provided inputspublic VCFEncoder getEncoder(Bundle outputBundle, VariantsEncoderOptions encoderOptions)
HtsCodecHtsEncoder to 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 an HtsCodecResolver obtained from an
HtsCodecRegistry.
The framework will never call this method unless either HtsCodec.ownsURI(IOPath), or
HtsCodec.canDecodeURI(IOPath) returned true for outputBundle.outputBundle - target output for the encoderencoderOptions - encoder options to useHtsEncoder suitable for writing to the provided outputspublic boolean runVersionUpgrade(HtsVersion sourceCodecVersion, HtsVersion targetCodecVersion)
protected java.lang.String getSignatureString()
VCFCodecgetSignatureString in class VCFCodec