readbfile: read a PLINK bfile file into a matrix

Description Usage Arguments Value

View source: R/readbfile.R

Description

read a PLINK bfile file into a matrix

Usage

1
2
readbfile(bfile, keep = NULL, extract = NULL, exclude = NULL,
  remove = NULL, chr = NULL, fillmissing = F)

Arguments

bfile

PLINK bfile (as character, without the .bed extension)

keep

samples to keep

extract

SNPs to extract

exclude

SNPs to exclude

remove

samples to remove

chr

a vector of chromosomes

fillmissing

Whether to fill missing values with 0

Value

A genotype matrix of 0,1, and 2 (possibly with NaNs)


tshmak/lassosum documentation built on Sept. 24, 2020, 9:41 a.m.