Skip to contents

evaluate_models function takes a PCA as input and analyses it via NNLS to describe admixed individuals as a mixture of sources groups.

Usage

evaluate_models(pca_input, as_file, sources = NULL, admixed = NULL)

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

Value

Returns a list containing the ancestries proportions per each Admixed group

Examples