
Read and structure .Q files or existing matrices as q_matrix
or gt_admix
objects.
Source: R/q_matrix.R
read_q_files.Rd
This function reads .Q matrix files generated by external clustering
algorithms (such as ADMIXTURE) and transforms them into gt_admix
objects.
Value
a
gt_admix
object containing a list of Q matrices and a list of indices for each Q matrix separated by K
Examples
q_files_path <- system.file("extdata", "anolis", package = "tidypopgen")
admix_obj <- read_q_files(q_files_path)
summary(admix_obj)
#> Admixture results for multiple runs:
#> k 3 4
#> n 1 1
#> with slots:
#> $Q for Q matrices