evaluate_models
evaluate_models.Rd
evaluate_models function takes a PCA as input and analyses it via NNLS to describe admixed individuals as a mixture of sources groups.
Arguments
- pca_input
R data.frame of PCA with N PCs
- as_file
R data.frame with two columns: POP and A/S, POP column lists all populations to be considered, A/S indicatea whether the population should be considered as Admixed ('A') or as Source ('S')
- sources
R vector indicating the groups that should be considered as Sources
- admixed
R vector indicating the groups that should be considered as Admixed