public class HaploidReferenceResolver extends HtsCodecResolver<HaploidReferenceCodec>
Provides a typesafe layer over the HtsCodecResolver used by an HtsCodecRegistry
to manage HaploidReferenceCodecs (see HtsCodecRegistry.getHaploidReferenceResolver()).
Provides typesafe conversion of argument and return types to types that conform to those used by
HaploidReferenceCodecs, such as HaploidReferenceDecoder and
HaploidReferenceEncoder.
| Constructor and Description |
|---|
HaploidReferenceResolver()
Create a new HaploidReferenceResolver.
|
| Modifier and Type | Method and Description |
|---|---|
HaploidReferenceDecoder |
getHaploidReferenceDecoder(Bundle inputBundle)
Get a
HaploidReferenceDecoder for the given input Bundle. |
HaploidReferenceDecoder |
getHaploidReferenceDecoder(Bundle inputBundle,
HaploidReferenceDecoderOptions HaploidReferenceDecoderOptions)
Get a
HaploidReferenceDecoder suitable for decoding inputBundle using options in
HaploidReferenceDecoderOptions. |
HaploidReferenceDecoder |
getHaploidReferenceDecoder(IOPath inputPath)
Get a
HaploidReferenceDecoder for the given inputPath. |
HaploidReferenceDecoder |
getHaploidReferenceDecoder(IOPath inputPath,
HaploidReferenceDecoderOptions HaploidReferenceDecoderOptions)
Get a
HaploidReferenceDecoder suitable for decoding inputPath using options in
HaploidReferenceDecoderOptions. |
getCodecs, registerCodec, resolveForDecoding, resolveForEncoding, resolveForEncoding, resolveForFormat, resolveFormatAndVersionpublic HaploidReferenceResolver()
public HaploidReferenceDecoder getHaploidReferenceDecoder(IOPath inputPath)
HaploidReferenceDecoder for the given inputPath.inputPath - the path to the resource to be decodedHtsjdkException - 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 HaploidReferenceDecoder getHaploidReferenceDecoder(IOPath inputPath, HaploidReferenceDecoderOptions HaploidReferenceDecoderOptions)
HaploidReferenceDecoder suitable for decoding inputPath using options in
HaploidReferenceDecoderOptions. The inputPath is inspected to determine the appropriate
file format/version. The index is automatically resolved. To bypass index resolution, use
getHaploidReferenceDecoder(htsjdk.io.IOPath).inputPath - the IOPath to be decodedHaploidReferenceDecoderOptions - options to useHaploidReferenceDecoder 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 HaploidReferenceDecoder getHaploidReferenceDecoder(Bundle inputBundle)
HaploidReferenceDecoder for the given input Bundle.inputBundle - the path to the bundle containing the resource to be decodedHtsjdkException - 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 HaploidReferenceDecoder getHaploidReferenceDecoder(Bundle inputBundle, HaploidReferenceDecoderOptions HaploidReferenceDecoderOptions)
HaploidReferenceDecoder suitable for decoding inputBundle using options in
HaploidReferenceDecoderOptions. The inputBundle is inspected to determine the appropriate
file format/version.inputBundle - the bundle to be decodedHaploidReferenceDecoderOptions - HaploidReferenceDecoderOptions options to be used by the decoderHaploidReferenceDecoder 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.