View source: R/classes_methods.R
| AddGenotypePriorProb_Even | R Documentation |
To estimate genotype posterior probabilities based on read depth alone, without
taking any population parameters into account, this function can be used to set
a uniform prior probability on all possible genotypes. This function is not
part of any pipeline but can be used for very rough and quick genotype
estimates, when followed by AddGenotypeLikelihood,
AddGenotypePosteriorProb, AddPloidyChiSq, and
GetWeightedMeanGenotypes or GetProbableGenotypes.
AddGenotypePriorProb_Even(object, ...)
object |
A |
... |
Additional arguments (none implemented). |
A “RADdata” object identical that passed to the function, but with data stored in one new slot:
priorProb |
A two-dimensional list of matrices, with rows corresponding
to |
Values in object$ploidyChiSq may not be particularly meaningful
under uniform priors.
Lindsay V. Clark
AddGenotypePriorProb_HWE
data(exampleRAD) exampleRAD <- AddGenotypePriorProb_Even(exampleRAD) exampleRAD$priorProb # finish protocol to get genotypes exampleRAD <- AddGenotypeLikelihood(exampleRAD) exampleRAD <- AddPloidyChiSq(exampleRAD) exampleRAD <- AddGenotypePosteriorProb(exampleRAD) genmat <- GetWeightedMeanGenotypes(exampleRAD) genmat
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.