public class VariantsResolver extends HtsCodecResolver<VariantsCodec>
Provides a convenient typesafe layer over the HtsCodecResolver used by an
HtsCodecRegistry to manage VariantsCodecs
(see HtsCodecRegistry.getHaploidReferenceResolver()).
Provides typesafe conversion of argument and return types to types that conform to those
used with VariantsCodecs, such as VariantsDecoder, VariantsEncoder,
VariantsDecoderOptions.
| Constructor and Description |
|---|
VariantsResolver()
Create a VariantsResolver.
|
| Modifier and Type | Method and Description |
|---|---|
VariantsDecoder |
getVariantsDecoder(Bundle inputBundle)
Get a
VariantsDecoder suitable for decoding inputBundle. |
VariantsDecoder |
getVariantsDecoder(Bundle inputBundle,
VariantsDecoderOptions variantsDecoderOptions)
|
VariantsDecoder |
getVariantsDecoder(IOPath inputPath)
Get a
VariantsDecoder suitable for decoding inputPath. |
VariantsDecoder |
getVariantsDecoder(IOPath inputPath,
VariantsDecoderOptions variantsDecoderOptions)
|
VariantsEncoder |
getVariantsEncoder(Bundle outputBundle,
VariantsEncoderOptions variantsEncoderOptions)
|
VariantsEncoder |
getVariantsEncoder(Bundle outputBundle,
VariantsEncoderOptions variantsEncoderOptions,
java.lang.String variantsFormat,
HtsVersion formatVersion)
Get a
VariantsEncoder suitable for encoding to outputBundle using
variantsEncoderOptions, specifying a version and output format. |
VariantsEncoder |
getVariantsEncoder(IOPath outputPath)
Get a
VariantsEncoder suitable for encoding to outputPath. |
VariantsEncoder |
getVariantsEncoder(IOPath outputPath,
VariantsEncoderOptions variantsEncoderOptions)
|
getCodecs, registerCodec, resolveForDecoding, resolveForEncoding, resolveForEncoding, resolveForFormat, resolveFormatAndVersionpublic VariantsDecoder getVariantsDecoder(IOPath inputPath)
VariantsDecoder suitable for decoding inputPath.inputPath - the input path to decodeVariantsDecoder suitable for decoding inputPathHtsjdkException - if no registered codecs can handle the resourceHtsjdkPluginException - if more than one codec claims to handle the resource. this usually indicates
that the registry contains an incorrectly written codec.public VariantsDecoder getVariantsDecoder(IOPath inputPath, VariantsDecoderOptions variantsDecoderOptions)
inputPath - the input path to decodevariantsDecoderOptions - decoder options to useVariantsDecoder suitable for decoding inputPathHtsjdkException - if no registered codecs can handle the resourceHtsjdkPluginException - if more than one codec claims to handle the resource. this usually indicates
that the registry contains an incorrectly written codec.public VariantsDecoder getVariantsDecoder(Bundle inputBundle)
VariantsDecoder suitable for decoding inputBundle.inputBundle - the input bundle containing resources to decodeVariantsDecoder suitable for decoding inputBundleHtsjdkException - if no registered codecs can handle the resourceHtsjdkPluginException - if more than one codec claims to handle the resource. this usually indicates
that the registry contains an incorrectly written codec.public VariantsDecoder getVariantsDecoder(Bundle inputBundle, VariantsDecoderOptions variantsDecoderOptions)
inputBundle - the input bundle to decodevariantsDecoderOptions - decoder options to useVariantsDecoder suitable for decoding inputBundleHtsjdkException - if no registered codecs can handle the resourceHtsjdkPluginException - if more than one codec claims to handle the resource. this usually indicates
that the registry contains an incorrectly written codec.public VariantsEncoder getVariantsEncoder(IOPath outputPath)
VariantsEncoder suitable for encoding to outputPath.outputPath - path to encode toVariantsEncoder suitable for encoding to outputPathHtsjdkException - if no registered codecs can handle the resourceHtsjdkPluginException - if more than one codec claims to handle the resource. this usually indicates
that the registry contains an incorrectly written codec.public VariantsEncoder getVariantsEncoder(IOPath outputPath, VariantsEncoderOptions variantsEncoderOptions)
outputPath - path to encode tovariantsEncoderOptions - encoder options to useVariantsEncoder suitable for encoding to outputPathHtsjdkException - if no registered codecs can handle the resourceHtsjdkPluginException - if more than one codec claims to handle the resource. this usually indicates
that the registry contains an incorrectly written codec.public VariantsEncoder getVariantsEncoder(Bundle outputBundle, VariantsEncoderOptions variantsEncoderOptions)
outputBundle - output bundle containg resources to encode tovariantsEncoderOptions - options to useVariantsEncoder suitable for encoding to outputBundleHtsjdkException - if no registered codecs can handle the resourceHtsjdkPluginException - if more than one codec claims to handle the resource. this usually indicates
that the registry contains an incorrectly written codec.public VariantsEncoder getVariantsEncoder(Bundle outputBundle, VariantsEncoderOptions variantsEncoderOptions, java.lang.String variantsFormat, HtsVersion formatVersion)
VariantsEncoder suitable for encoding to outputBundle using
variantsEncoderOptions, specifying a version and output format.outputBundle - output bundle containing resources to encode tovariantsEncoderOptions - options to usevariantsFormat - the output format to useformatVersion - the format version to useVariantsEncoder suitable for encoding to outputBundleHtsjdkException - if no registered codecs can handle the resourceHtsjdkPluginException - if more than one codec claims to handle the resource. this usually indicates
that the registry contains an incorrectly written codec.