This function converts EIGENSTRAT/PACKEDANCESTRYMAP format files to PLINK files, using write_plink
.
When inds
or pops
is provided, only a subset of samples will be extracted.
This function can have a high memory footprint, because data for all SNPs will be read before writing the PLINK files.
packedancestrymap_to_plink(
inpref,
outpref,
inds = NULL,
pops = NULL,
verbose = TRUE
)
Prefix of the input files
Prefix of the PLINK output files
Individuals which should be extracted
Populations which should be extracted. Can not be provided together with inds
Print progress updates
eigenstrat_to_plink