read_plink: Read genotype data from 'PLINK' files

View source: R/io.R

read_plinkR Documentation

Description

See genio for a dedicated R package for reading and writing PLINK files. This function is based on a similar function in the plink2R package.

Usage

read_plink(pref, inds = NULL, pops = NULL, verbose = FALSE)

Arguments

pref

Prefix of packedancestrymap files (files have to end in .geno, .ind, .snp)

inds

Individuals for which data should be read. Defaults to all individuals

pops

Populations for which data should be read. Cannot be provided together with 'inds'

verbose

Print progress updates

Value

A list with the genotype data matrix, the .ind file, and the .snp file

Examples

## Not run: 
samples = c('Ind1', 'Ind2', 'Ind3')
geno = read_packedancestrymap(prefix, samples)

## End(Not run)

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