Skip to contents

read_eigen reads smartpca output from EIGENSTRAT, where the first column contains Family ID, the second sample ID, and the following the PCs

Usage

read_eigen(pca_input)

Arguments

pca_input

points to the directory and pca.evec file

Value

Returns a PCA matrix with new header: POP ID PC1 PCN CC

Examples

if (FALSE) {
read_eigen(pca_input = 'data/TOY.pca.evec')
}