View source: R/classes_methods.R
CanDoGetWeightedMeanGeno | R Documentation |
GetWeightedMeanGenotypes
Can Be Run
This function is used internally by AddPCA
,
AddAlleleFreqByTaxa
, and the internal function .alleleFreq
to test whether GetWeightedMeanGenotypes
can be run on a
"RADdata"
object.
CanDoGetWeightedMeanGeno(object, ...)
object |
A |
... |
Additional arguments (none implemented). |
A single Boolean value. To be TRUE
, object$posteriorProb
must be
non-null, and either there must be only one possible ploidy, or
object$ploidyChiSq
must be non-null.
Lindsay V. Clark
AddGenotypePosteriorProb
, AddPloidyChiSq
data(exampleRAD)
CanDoGetWeightedMeanGeno(exampleRAD)
exampleRAD <- AddAlleleFreqHWE(exampleRAD)
exampleRAD <- AddGenotypePriorProb_HWE(exampleRAD)
exampleRAD <- AddGenotypeLikelihood(exampleRAD)
exampleRAD <- AddPloidyChiSq(exampleRAD)
exampleRAD <- AddGenotypePosteriorProb(exampleRAD)
CanDoGetWeightedMeanGeno(exampleRAD)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.