public class GermlineProbabilityCalculator
extends java.lang.Object
Constructor and Description |
---|
GermlineProbabilityCalculator() |
Modifier and Type | Method and Description |
---|---|
static double[] |
calculateGermlineProbabilities(double[] populationAlleleFrequencies,
double[] log10OddsOfGermlineHetVsSomatic,
double[] log10OddsOfGermlineHomAltVsSomatic,
java.util.Optional<double[]> normalLog10Odds,
double log10PriorProbOfSomaticEvent) |
static java.util.Map<java.lang.String,java.lang.Object> |
getPopulationAFAnnotation(java.util.List<htsjdk.variant.variantcontext.VariantContext> germlineResourceVariants,
java.util.List<htsjdk.variant.variantcontext.Allele> altAlleles,
double afOfAllelesNotInGermlineResource) |
static double |
log10PosteriorProbabilityOfGermlineVariant(double normalLog10Odds,
double log10OddsOfGermlineHetVsSomatic,
double log10OddsOfGermlineHomAltVsSomatic,
double populationAlleleFrequency,
double log10PriorProbOfSomaticEvent) |
public static java.util.Map<java.lang.String,java.lang.Object> getPopulationAFAnnotation(java.util.List<htsjdk.variant.variantcontext.VariantContext> germlineResourceVariants, java.util.List<htsjdk.variant.variantcontext.Allele> altAlleles, double afOfAllelesNotInGermlineResource)
public static double[] calculateGermlineProbabilities(double[] populationAlleleFrequencies, double[] log10OddsOfGermlineHetVsSomatic, double[] log10OddsOfGermlineHomAltVsSomatic, java.util.Optional<double[]> normalLog10Odds, double log10PriorProbOfSomaticEvent)
public static double log10PosteriorProbabilityOfGermlineVariant(double normalLog10Odds, double log10OddsOfGermlineHetVsSomatic, double log10OddsOfGermlineHomAltVsSomatic, double populationAlleleFrequency, double log10PriorProbOfSomaticEvent)
normalLog10Odds
- the log10 likelihood ratio between 1) allele being present in normal (as a diploid het or hom var
and not as an artifact) and 2) not being present. Since likelihoods are meaningful only up to an
arbitrary constant factor, we may interpret this as the log10 likelihood that the allele exists
in the normal provided that the likelihood that it does not exist is log10(1) = 0.log10OddsOfGermlineHetVsSomatic
- the log10 likelihood ratio between 1) allele being present in tumor as a germline het
(using information about the minor allele fraction) and 2) being present,
as a somatic variant as calculated by the SomaticGenotypingEngine
populationAlleleFrequency
- frequency of this allele in the population -- serves as a prior for germline allelelog10PriorProbOfSomaticEvent
- the log10 prior probability for this allele to arise de novo in the tumor