@DocumentedFeature(groupName="Variant Annotations", groupSummary="Available to HaplotypeCaller, Mutect2, VariantAnnotator and GenotypeGVCFs. See https://software.broadinstitute.org/gatk/documentation/article?id=10836", summary="Median distance of variant starts from ends of reads supporting each allele (MPOS)") public class ReadPosition extends PerAlleleAnnotation implements StandardMutectAnnotation
The annotation considers only the read's bases themselves and not the position they map to with respect to the reference. For example, suppose a substitution is preceded by 80 matching bases and followed by 10 matching bases, a 10-base deletion, and 10 more matching bases. Its distance from the end of the read is 20 bases, not 30 bases, because the deleted bases belong to the reference, not the read. Similarly soft-clipped bases are counted in the distance.
This annotation is useful for filtering alignment artifacts.
Constructor and Description |
---|
ReadPosition() |
Modifier and Type | Method and Description |
---|---|
protected int |
aggregate(java.util.List<java.lang.Integer> values) |
protected java.lang.String |
getDescription() |
protected java.util.OptionalInt |
getValueForRead(GATKRead read,
htsjdk.variant.variantcontext.VariantContext vc) |
protected java.lang.String |
getVcfKey() |
annotate, getDescriptions, getKeyNames, includeRefAllele
toString
protected int aggregate(java.util.List<java.lang.Integer> values)
aggregate
in class PerAlleleAnnotation
protected java.lang.String getVcfKey()
getVcfKey
in class PerAlleleAnnotation
protected java.lang.String getDescription()
getDescription
in class PerAlleleAnnotation
protected java.util.OptionalInt getValueForRead(GATKRead read, htsjdk.variant.variantcontext.VariantContext vc)
getValueForRead
in class PerAlleleAnnotation