public class HaplotypeProbabilityOfNormalGivenTumor extends HaplotypeProbabilities
HaplotypeProbabilities.Genotype
Constructor and Description |
---|
HaplotypeProbabilityOfNormalGivenTumor(HaplotypeProbabilities hpOfTumor,
double pLoH) |
Modifier and Type | Method and Description |
---|---|
double[] |
getLikelihoods()
Returns the likelihoods, in order, of the AA, Aa and aa haplotypes given the evidence
Mathematically this is P(evidence | haplotype) where haplotype={AA,Aa,aa}.
|
int |
getObsAllele1()
Returns the number of observations of alleles supporting the first/major haplotype allele.
|
int |
getObsAllele2()
Returns the number of observations of alleles supporting the second/minor haplotype allele.
|
Snp |
getRepresentativeSnp()
Returns a representative SNP for this haplotype.
|
int |
getTotalObs()
Returns the total number of observations of any allele.
|
boolean |
hasEvidence()
Returns true if evidence has been added, false if the probabilities are just the priors.
|
void |
merge(HaplotypeProbabilities ignored)
Merges in the likelihood information from the supplied haplotype probabilities object.
|
getHaplotype, getLodMostProbableGenotype, getLogLikelihoods, getMostLikelyGenotype, getMostLikelyHaplotype, getPosteriorProbabilities, getPriorProbablities, scaledEvidenceProbabilityUsingGenotypeFrequencies, shiftedLogEvidenceProbability, shiftedLogEvidenceProbabilityGivenOtherEvidence, shiftedLogEvidenceProbabilityUsingGenotypeFrequencies
public HaplotypeProbabilityOfNormalGivenTumor(HaplotypeProbabilities hpOfTumor, double pLoH)
public double[] getLikelihoods()
HaplotypeProbabilities
getLikelihoods
in class HaplotypeProbabilities
public Snp getRepresentativeSnp()
HaplotypeProbabilities
getRepresentativeSnp
in class HaplotypeProbabilities
public void merge(HaplotypeProbabilities ignored)
HaplotypeProbabilities
merge
in class HaplotypeProbabilities
public int getObsAllele1()
HaplotypeProbabilities
getObsAllele1
in class HaplotypeProbabilities
public int getObsAllele2()
HaplotypeProbabilities
getObsAllele2
in class HaplotypeProbabilities
public int getTotalObs()
HaplotypeProbabilities
getTotalObs
in class HaplotypeProbabilities
public boolean hasEvidence()
HaplotypeProbabilities
hasEvidence
in class HaplotypeProbabilities