CanDoGetWeightedMeanGeno {polyRAD} | R Documentation |
Check Whether GetWeightedMeanGenotypes
Can Be Run
Description
This function is used internally by AddPCA
,
AddAlleleFreqByTaxa
, and the internal function .alleleFreq
to test whether GetWeightedMeanGenotypes
can be run on a
"RADdata"
object.
Usage
CanDoGetWeightedMeanGeno(object, ...)
Arguments
object |
A |
... |
Additional arguments (none implemented). |
Value
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.
Author(s)
Lindsay V. Clark
See Also
AddGenotypePosteriorProb
, AddPloidyChiSq
Examples
data(exampleRAD)
CanDoGetWeightedMeanGeno(exampleRAD)
exampleRAD <- AddAlleleFreqHWE(exampleRAD)
exampleRAD <- AddGenotypePriorProb_HWE(exampleRAD)
exampleRAD <- AddGenotypeLikelihood(exampleRAD)
exampleRAD <- AddPloidyChiSq(exampleRAD)
exampleRAD <- AddGenotypePosteriorProb(exampleRAD)
CanDoGetWeightedMeanGeno(exampleRAD)
[Package polyRAD version 2.0.0 Index]