public class HaplotypeProbabilityOfNormalGivenTumor extends HaplotypeProbabilities
The shortcoming of this model is that we assume that the events are all independent, but this way they are allowed.
HaplotypeProbabilities.Genotype| Constructor | Description |
|---|---|
HaplotypeProbabilityOfNormalGivenTumor(HaplotypeProbabilities hpOfTumor,
double pLoH) |
| Modifier and Type | Method | Description |
|---|---|---|
double[] |
getLikelihoods() |
Returns the likelihoods, in order, of the AA, Aa and aa haplotypes given the evidence
|
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, shiftedLogEvidenceProbabilityUsingGenotypeFrequenciespublic HaplotypeProbabilityOfNormalGivenTumor(HaplotypeProbabilities hpOfTumor, double pLoH)
public double[] getLikelihoods()
HaplotypeProbabilitiesMathematically this is P(evidence | haplotype) where haplotype={AA,Aa,aa}.
getLikelihoods in class HaplotypeProbabilitiespublic Snp getRepresentativeSnp()
HaplotypeProbabilitiesgetRepresentativeSnp in class HaplotypeProbabilitiespublic void merge(HaplotypeProbabilities ignored)
HaplotypeProbabilitiesmerge in class HaplotypeProbabilitiespublic int getObsAllele1()
HaplotypeProbabilitiesgetObsAllele1 in class HaplotypeProbabilitiespublic int getObsAllele2()
HaplotypeProbabilitiesgetObsAllele2 in class HaplotypeProbabilitiespublic int getTotalObs()
HaplotypeProbabilitiesgetTotalObs in class HaplotypeProbabilitiespublic boolean hasEvidence()
HaplotypeProbabilitieshasEvidence in class HaplotypeProbabilities