save_pgen_table: Save a '.pgen' table to file.

View source: R/save_pgen_table.R

save_pgen_tableR Documentation

Save a .pgen table to file.

Description

Save a .pgen table to file

Usage

save_pgen_table(pgen_table, pgen_filename, verbose = FALSE)

Arguments

pgen_table

an array that maps the individuals to their SNPs, with as much rows as individuals, and as much SNPs as columns. Optionally, the row names are the individuals' IDs, where the column names are the SNP ID's

pgen_filename

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

verbose

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

Author(s)

Richèl J.C. Bilderbeek

Examples

pgen_table <- get_test_pgen_table()
pgen_filename <- get_plinkr_tempfilename(fileext = ".pgen")
if (1 == 2) {
  save_pgen_table(
    pgen_table = pgen_table,
    pgen_filename = pgen_filename
  )
  file.remove(pgen_filename)
}

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