packedancestrymap_to_plink: Convert _EIGENSTRAT_ or _PACKEDANCESTRYMAP_ to _PLINK_

packedancestrymap_to_plinkR Documentation

Description

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.

Usage

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


uqrmaie1/admixtools documentation built on Nov. 3, 2024, 12:56 a.m.