@DocumentedFeature(groupName="Variant Annotations", groupSummary="Available to HaplotypeCaller, Mutect2, VariantAnnotator and GenotypeGVCFs. See https://software.broadinstitute.org/gatk/documentation/article?id=10836", summary="Depth of informative coverage for each sample (DP)") public final class DepthPerSampleHC extends GenotypeAnnotation implements StandardHCAnnotation, StandardMutectAnnotation
This annotation is similar to the sample-level DP annotation, which counts read depth after general filtering, but with an extra layer of stringency. Its purpose is to provide the count of reads that are actually considered informative by HaplotypeCaller (HC), using pre-read likelihoods that are produced internally by HC.
In this context, an informative read is defined as one that allows the allele it carries to be easily distinguished. In contrast, a read might be considered uninformative if, for example, it only partially overlaps a short tandem repeat and it is not clear whether the read contains the reference allele or an extra repeat.
See the method documentation on using coverage information for important interpretation details.
Constructor and Description |
---|
DepthPerSampleHC() |
Modifier and Type | Method and Description |
---|---|
void |
annotate(ReferenceContext ref,
htsjdk.variant.variantcontext.VariantContext vc,
htsjdk.variant.variantcontext.Genotype g,
htsjdk.variant.variantcontext.GenotypeBuilder gb,
AlleleLikelihoods<GATKRead,htsjdk.variant.variantcontext.Allele> likelihoods)
Computes the annotation for the given genotype and the likelihoods per read.
|
java.util.List<htsjdk.variant.vcf.VCFFormatHeaderLine> |
getDescriptions()
Return the descriptions used for the VCF FORMAT meta field.
|
java.util.List<java.lang.String> |
getKeyNames()
Return the keys
|
toString
public void annotate(ReferenceContext ref, htsjdk.variant.variantcontext.VariantContext vc, htsjdk.variant.variantcontext.Genotype g, htsjdk.variant.variantcontext.GenotypeBuilder gb, AlleleLikelihoods<GATKRead,htsjdk.variant.variantcontext.Allele> likelihoods)
GenotypeAnnotation
annotate
in class GenotypeAnnotation
ref
- Reference context, may be nullvc
- Variant to be annotated. Not null.g
- the genotype to annotate. May be null.gb
- the builder to modify and annotations to. Not null.likelihoods
- matrix of likelihoods indexed by allele and readpublic java.util.List<java.lang.String> getKeyNames()
VariantAnnotation
getKeyNames
in class VariantAnnotation
public java.util.List<htsjdk.variant.vcf.VCFFormatHeaderLine> getDescriptions()
GenotypeAnnotation
getDescriptions
in class GenotypeAnnotation