CollapsABEL (version 0.10.11)

readBed: Read genotypes from PLINK bed file into R

Description

Read genotypes from PLINK bed file into R

Usage

readBed(rbed_info, snp_vec, fid_iid = TRUE, snp_names_as_colnames = TRUE)
"readBed"(rbed_info, snp_vec, fid_iid = TRUE, snp_names_as_colnames = TRUE)
"readBed"(rbed_info, snp_vec, fid_iid = TRUE, snp_names_as_colnames = TRUE)
"readBed"(rbed_info, snp_vec, fid_iid = TRUE, snp_names_as_colnames = TRUE)
"readBed"(rbed_info, snp_vec, fid_iid = TRUE, snp_names_as_colnames = TRUE)
"readBed"(rbed_info, snp_vec, fid_iid = TRUE, snp_names_as_colnames = TRUE)
"readBed"(rbed_info, snp_vec, fid_iid = TRUE, snp_names_as_colnames = TRUE)
"readBed"(rbed_info, snp_vec, fid_iid = TRUE, snp_names_as_colnames = TRUE)
"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.