Description Usage Arguments Value
View source: R/compareMixtureToData.R
Obtain the prediction of a mixture for each cluster (a P by P matrix), and return a matrix of this dimension but with replace the data for that cluster by its prediction, so that the diagonal is forced to match the prediction. This removes "genetic drift" specific to a given population.
1 2 | oneByOnePrediction(mix, data.NbyP, coancestry.KbyP, pred.NbyPatK,
tdend = NULL, clusterlist = NULL, ancestral = "solve")
|
mix |
A proposed mixture solution of dimension N by K; for example, as generated by STRUCTURE or ADMIXTURE. |
data.NbyP |
A matrix containing the data of dimension N by P, for example, as generated by ChromoPainter. the data must reflect similarity to P clusterings of the data. |
coancestry.KbyP |
A matrix of the cluster averaged data |
pred.NbyPatK |
A matrix of the cluster predictions |
tdend |
A dendrohram of the populations, used for ordering. Default: NULL, meaning use clusterlist |
clusterlist |
A list of populations, as described in |
ancestral |
Ancestral model, as described in |
A matrix of dimension P by P
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.