read_Q_matrix | R Documentation |
Read ancestry proportions ('Q-matrix') from ADMIXTURE run
read_Q_matrix(infile, K = NULL, iids = NULL, ...)
infile |
path to matrix of ancestry proportions (*.Q file) from ADMIXTURE run |
K |
number of clusters; if |
iids |
sample IDs (in same order as rows in matrix); if |
... |
extra arguments, ignored |
If K
and iids
are both NULL
(default), assumes that
estimation was performed from a PLINK *.bed file, and that the corresponding *.fam
file resides in same directory as output. If standard errors for ancestrty proportions
are availbale (*.Q_se file), they are read as well and stored in attr(result, "se")
.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.