Class BCF2FieldWriterManager
java.lang.Object
htsjdk.variant.variantcontext.writer.BCF2FieldWriterManager
See #BCFWriter for documentation on this classes role in encoding BCF2 files
- Since:
- 06/12
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptiongetGenotypeFieldWriter
(String field) Get a genotypes writer specialized to encode values for genotypes fieldgetSiteFieldWriter
(String field) Get a site writer specialized to encode values for site info field<T> T
void
Setup the FieldWriters appropriate to each INFO and FORMAT in the VCF header Must be called before any of the getter methods will work
-
Constructor Details
-
BCF2FieldWriterManager
public BCF2FieldWriterManager()
-
-
Method Details
-
setup
Setup the FieldWriters appropriate to each INFO and FORMAT in the VCF header Must be called before any of the getter methods will work- Parameters:
header
- a VCFHeader containing description for every INFO and FORMAT field we'll attempt to write out to BCFencoder
- the encoder we are going to use to write out the BCF2 datastringDictionary
- a map from VCFHeader strings to their offsets for encoding
-
getSiteFieldWriter
Get a site writer specialized to encode values for site info field- Parameters:
field
- key found in the VCF header INFO records- Returns:
- non-null writer if one can be found, or null if none exists for field
-
getGenotypeFieldWriter
Get a genotypes writer specialized to encode values for genotypes field- Parameters:
field
- key found in the VCF header FORMAT records- Returns:
- non-null writer if one can be found, or null if none exists for field
-
getWriter
-