public interface Funcotation
Funcotator
annotation.
Created by jonn on 8/30/17.Modifier and Type | Method and Description |
---|---|
htsjdk.variant.variantcontext.Allele |
getAltAllele() |
java.lang.String |
getDataSourceName() |
java.lang.String |
getField(java.lang.String fieldName)
Get the value of a field in this
Funcotation . |
java.util.LinkedHashSet<java.lang.String> |
getFieldNames()
Get the names of the fields in this
Funcotation . |
java.lang.String |
serializeToVcfString()
Converts this
Funcotation to a string suitable for insertion into a VCF file. |
default java.lang.String |
serializeToVcfString(java.lang.String manualAnnotationString)
TODO: This interface should have nothing specific to a VCF.
|
void |
setFieldSerializationOverrideValue(java.lang.String fieldName,
java.lang.String overrideValue)
Override the given field with a given value for when it comes time to serialize and write this
Funcotation . |
default void |
setFieldSerializationOverrideValues(java.util.Map<java.lang.String,java.lang.String> fieldSerializationOverrides)
Override fields with values as specified by the input map (for when it comes time to serialize and write this
Funcotation ). |
htsjdk.variant.variantcontext.Allele getAltAllele()
Allele
that is associated with this Funcotation
.void setFieldSerializationOverrideValue(java.lang.String fieldName, java.lang.String overrideValue)
Funcotation
.
If the given field
is not contained in this Funcotation
then a UserException
will be thrown.fieldName
- A String
comprising the name of the field to override.overrideValue
- The String
value for the field to override.java.lang.String serializeToVcfString()
Funcotation
to a string suitable for insertion into a VCF file.String
representing this Funcotation
suitable for insertion into a VCF file.java.lang.String getDataSourceName()
DataSourceFuncotationFactory
used to create this Funcotation
.java.util.LinkedHashSet<java.lang.String> getFieldNames()
Funcotation
.Funcotation
as a LinkedHashSet
of String
s.java.lang.String getField(java.lang.String fieldName)
Funcotation
.String
value of a field in this Funcotation
.{@link
- org.broadinstitute.hellbender.exceptions.GATKException} if the given fieldName
is not in this Funcotation
.default void setFieldSerializationOverrideValues(java.util.Map<java.lang.String,java.lang.String> fieldSerializationOverrides)
Funcotation
).
If the given overrides map is null, will not override any field.
If the given overrides map is not null and if the given field
is not contained in this Funcotation
then a UserException
will be thrown.fieldSerializationOverrides
- A Map
containing fields to override in this Funcotation
.default java.lang.String serializeToVcfString(java.lang.String manualAnnotationString)
Funcotation
to a string suitable for insertion into a VCF file.
manualAnnotationString
should be written first, followed by the inherent annotations in this Funcotation
.manualAnnotationString
- A String
of manually-provided annotations to add to this Funcotation
.String
representing this Funcotation
suitable for insertion into a VCF file.