read_plink2_pgen_file: Read a 'PLINK2' '.pgen' file

View source: R/read_plink2_pgen_file.R

read_plink2_pgen_fileR Documentation

Read a PLINK2 .pgen file

Description

Read a PLINK2 .pgen file

Usage

read_plink2_pgen_file(pgen_filename, names_loci, names_ind, verbose = FALSE)

Arguments

pgen_filename

name of a PLINK2 .pgen file Use read_plink2_pgen_file to read a PLINK2 .pgen file

names_loci

see read_bed

names_ind

see read_bed

verbose

the verbosity of a function. Set to TRUE for more output. Use check_verbose to detect if this argument is valid.

Value

a .pgen table

Author(s)

Richèl J.C. Bilderbeek

See Also

use read_plink2_pgen_file_from_files to read a PLINK2 .pgen file with column and rownames obtained from the two other PLINK2 data files

Examples

pgen_filename <- get_plinkr_filename(
  "test_v1_7_after_make-bed_after_make-pgen.pgen"
)
read_plink2_pgen_file(
  pgen_filename = pgen_filename,
  names_loci = paste0("snp_", 1:2),
  names_ind = paste0("person_", letters[1:6])
)

richelbilderbeek/plinkr documentation built on March 25, 2024, 3:18 p.m.