public abstract class PerAlleleAnnotation extends InfoFieldAnnotation
Constructor and Description |
---|
PerAlleleAnnotation() |
Modifier and Type | Method and Description |
---|---|
protected abstract int |
aggregate(java.util.List<java.lang.Integer> values) |
java.util.Map<java.lang.String,java.lang.Object> |
annotate(ReferenceContext ref,
htsjdk.variant.variantcontext.VariantContext vc,
AlleleLikelihoods<GATKRead,htsjdk.variant.variantcontext.Allele> likelihoods)
Calculate annotations for each allele based on given VariantContext and likelihoods for a given genotype's sample
and add the annotations to the GenotypeBuilder.
|
protected abstract java.lang.String |
getDescription() |
java.util.List<htsjdk.variant.vcf.VCFInfoHeaderLine> |
getDescriptions()
Returns the descriptions used for the VCF INFO meta field.
|
java.util.List<java.lang.String> |
getKeyNames()
Return the keys
|
protected abstract java.util.OptionalInt |
getValueForRead(GATKRead read,
htsjdk.variant.variantcontext.VariantContext vc) |
protected abstract java.lang.String |
getVcfKey() |
protected boolean |
includeRefAllele() |
toString
public java.util.Map<java.lang.String,java.lang.Object> annotate(ReferenceContext ref, htsjdk.variant.variantcontext.VariantContext vc, AlleleLikelihoods<GATKRead,htsjdk.variant.variantcontext.Allele> likelihoods)
includeRefAllele()
method. See parent class docs in GenotypeAnnotation
.annotate
in class InfoFieldAnnotation
ref
- Reference context, may be nullvc
- Variant to be annotated. Not null.likelihoods
- likelihoods indexed by sample, allele, and read within sampleprotected boolean includeRefAllele()
public java.util.List<htsjdk.variant.vcf.VCFInfoHeaderLine> getDescriptions()
InfoFieldAnnotation
getDescriptions
in class InfoFieldAnnotation
public java.util.List<java.lang.String> getKeyNames()
VariantAnnotation
getKeyNames
in class VariantAnnotation
protected abstract java.util.OptionalInt getValueForRead(GATKRead read, htsjdk.variant.variantcontext.VariantContext vc)
protected abstract int aggregate(java.util.List<java.lang.Integer> values)
protected abstract java.lang.String getVcfKey()
protected abstract java.lang.String getDescription()