Package picard.fingerprint
Class HaplotypeProbabilitiesFromGenotype
java.lang.Object
picard.fingerprint.HaplotypeProbabilities
picard.fingerprint.HaplotypeProbabilitiesFromGenotype
Represents a set of HaplotypeProbabilities that were derived from a single SNP
genotype at a point in time.
-
Nested Class Summary
Nested classes/interfaces inherited from class picard.fingerprint.HaplotypeProbabilities
HaplotypeProbabilities.Genotype -
Constructor Summary
ConstructorsConstructorDescriptionHaplotypeProbabilitiesFromGenotype(Snp snp, HaplotypeBlock haplotypeBlock, double AA, double Aa, double aa) -
Method Summary
Modifier and TypeMethodDescriptiondeepCopy()double[]Returns the likelihoods, in order, of the AA, Aa and aa haplotypes given the evidenceReturns the SNP who's genotype was used to construct the likelihoods.merge(HaplotypeProbabilities other) Merges in the likelihood information from the supplied haplotype probabilities object.Methods inherited from class picard.fingerprint.HaplotypeProbabilities
getHaplotype, getLodMostProbableGenotype, getLogLikelihoods, getMostLikelyGenotype, getMostLikelyHaplotype, getObsAllele1, getObsAllele2, getPosteriorLikelihoods, getPosteriorProbabilities, getPriorProbablities, getTotalObs, hasEvidence, scaledEvidenceProbabilityUsingGenotypeFrequencies, shiftedLogEvidenceProbability, shiftedLogEvidenceProbabilityGivenOtherEvidence, shiftedLogEvidenceProbabilityUsingGenotypeFrequencies
-
Constructor Details
-
HaplotypeProbabilitiesFromGenotype
-
HaplotypeProbabilitiesFromGenotype
public HaplotypeProbabilitiesFromGenotype(Snp snp, HaplotypeBlock haplotypeBlock, double AA, double Aa, double aa)
-
-
Method Details
-
deepCopy
- Specified by:
deepCopyin classHaplotypeProbabilities
-
getRepresentativeSnp
Returns the SNP who's genotype was used to construct the likelihoods.- Specified by:
getRepresentativeSnpin classHaplotypeProbabilities
-
getLikelihoods
public double[] getLikelihoods()Description copied from class:HaplotypeProbabilitiesReturns the likelihoods, in order, of the AA, Aa and aa haplotypes given the evidenceMathematically this is P(evidence | haplotype) where haplotype={AA,Aa,aa}. Will be normalized.
- Specified by:
getLikelihoodsin classHaplotypeProbabilities
-
merge
Description copied from class:HaplotypeProbabilitiesMerges in the likelihood information from the supplied haplotype probabilities object.- Specified by:
mergein classHaplotypeProbabilities
-