readBed: Read genotypes from PLINK bed file into R

Description Usage Arguments Value Author(s)

Description

Read genotypes from PLINK bed file into R

Usage

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
readBed(rbed_info, snp_vec, fid_iid = TRUE, snp_names_as_colnames = TRUE)

## S4 method for signature 'RbedInfoC,ANY,logical,logical'
readBed(rbed_info, snp_vec,
  fid_iid = TRUE, snp_names_as_colnames = TRUE)

## S4 method for signature 'RbedInfoC,missing,missing,missing'
readBed(rbed_info, snp_vec,
  fid_iid = TRUE, snp_names_as_colnames = TRUE)

## S4 method for signature 'RbedInfoC,ANY,missing,missing'
readBed(rbed_info, snp_vec,
  fid_iid = TRUE, snp_names_as_colnames = TRUE)

## S4 method for signature 'RbedInfoC,missing,logical,missing'
readBed(rbed_info, snp_vec,
  fid_iid = TRUE, snp_names_as_colnames = TRUE)

## S4 method for signature 'RbedInfoC,ANY,logical,missing'
readBed(rbed_info, snp_vec,
  fid_iid = TRUE, snp_names_as_colnames = TRUE)

## S4 method for signature 'RbedInfoC,missing,missing,logical'
readBed(rbed_info, snp_vec,
  fid_iid = TRUE, snp_names_as_colnames = TRUE)

## S4 method for signature 'RbedInfoC,ANY,missing,logical'
readBed(rbed_info, snp_vec,
  fid_iid = TRUE, snp_names_as_colnames = TRUE)

## S4 method for signature 'RbedInfoC,missing,logical,logical'
readBed(rbed_info, snp_vec,
  fid_iid = TRUE, snp_names_as_colnames = TRUE)

Arguments

rbed_info

RbedInfoC object

snp_vec

numeric. Vector of SNP index. Either row numbers in the bim file or a vector of SNP names.

fid_iid

logical. Whether the FID and IID columns should be included.

snp_names_as_colnames

logical. Whether SNP names should be used as colnames in the returned data frame

Value

data.frame Genotype data from bed file.

Author(s)

Kaiyin Zhong, Fan Liu


CollapsABEL documentation built on May 29, 2017, 9:43 a.m.