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, shiftedLogEvidenceProbabilityUsingGenotypeFrequenciespublic HaplotypeProbabilityOfNormalGivenTumor(HaplotypeProbabilities hpOfTumor, double pLoH)
public double[] getLikelihoods()
HaplotypeProbabilitiesgetLikelihoods 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