predict_gt_pca.Rd
Predict the PCA scores for a gt_pca
, either for the original data or
projecting new data.
the gt_pca
object
a gen_tibble if scores are requested for a new dataset
a string taking the value of either "simple", "OADP" (Online Augmentation, Decomposition, and Procrustes (OADP) projection), or "least_squares" (as done by SMARTPCA)
a vector of length two with the values of the two principal components
to use for the least square fitting. Only relevant ifproject_method = 'least_squares'
number of loci read simultaneously (larger values will speed up computation, but require more memory)
number of cores
no used
a matrix of predictions, with samples as rows and components as columns. The number
of components depends on how many were estimated in the gt_pca
object.
Zhang et al (2020). Fast and robust ancestry prediction using principal component analysis 36(11): 3439–3446.