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
)

Arguments

inpref

Prefix of the input files

outpref

Prefix of the PLINK output files

inds

Individuals which should be extracted

pops

Populations which should be extracted. Can not be provided together with inds

verbose

Print progress updates

Alias

eigenstrat_to_plink