Read genotype data from EIGENSTRAT files
read_eigenstrat(
pref,
inds = NULL,
pops = NULL,
first = 1,
last = Inf,
transpose = FALSE,
verbose = TRUE
)
Prefix of the packedancestrymap files
Individuals for which data should be read. Defaults to all individuals
Populations for which data should be read. Cannot be provided together with 'inds'
Index of first SNP to read
Index of last SNP to read
Transpose genotype matrix (default is snps
x individuals
)
Print progress updates
A list with the genotype data matrix, the .ind
file, and the .snp
file
if (FALSE) {
samples = c('Ind1', 'Ind2', 'Ind3')
geno = read_packedancestrymap(prefix, samples)
}