@DocumentedFeature(groupName="Variant Annotations", groupSummary="Available to HaplotypeCaller, Mutect2, VariantAnnotator and GenotypeGVCFs. See https://software.broadinstitute.org/gatk/documentation/article?id=10836", summary="Likelihood-based test for the consanguinity among samples (InbreedingCoeff)") public final class InbreedingCoeff extends PedigreeAnnotation implements StandardAnnotation
This annotation estimates whether there is evidence of consanguinuity in a population. The higher the score, the higher the chance that some samples are related. If samples are known to be related, a pedigree file can be provided so that the calculation is only performed on founders and offspring are excluded.
The calculation is a continuous generalization of the Hardy-Weinberg test for disequilibrium that works well with limited coverage per sample. The output is a Phred-scaled p-value derived from running the HW test for disequilibrium with PL values. See the method document on statistical tests for a more detailed explanation of this statistical test.
ExcessHet also describes the heterozygosity of the called samples, giving a probability of excess heterozygosity being observed
Constructor and Description |
---|
InbreedingCoeff() |
InbreedingCoeff(java.io.File pedigreeFile) |
InbreedingCoeff(java.util.Set<java.lang.String> founderIds) |
Modifier and Type | Method and Description |
---|---|
java.util.Map<java.lang.String,java.lang.Object> |
annotate(ReferenceContext ref,
htsjdk.variant.variantcontext.VariantContext vc,
ReadLikelihoods<htsjdk.variant.variantcontext.Allele> likelihoods)
Computes the annotation for the given variant and the likelihoods per read.
|
java.util.List<java.lang.String> |
getKeyNames()
Return the keys
|
getFounderGenotypes, setFounderIds, setPedigreeFile
getDescriptions
toString
public InbreedingCoeff()
public InbreedingCoeff(java.util.Set<java.lang.String> founderIds)
public InbreedingCoeff(java.io.File pedigreeFile)
public java.util.Map<java.lang.String,java.lang.Object> annotate(ReferenceContext ref, htsjdk.variant.variantcontext.VariantContext vc, ReadLikelihoods<htsjdk.variant.variantcontext.Allele> likelihoods)
InfoFieldAnnotation
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 samplepublic java.util.List<java.lang.String> getKeyNames()
VariantAnnotation
getKeyNames
in class VariantAnnotation