save_pvar_table: Save a '.pvar' table to file.

View source: R/save_pvar_table.R

save_pvar_tableR Documentation

Save a .pvar table to file.

Description

Save a .pvar table to file

Usage

save_pvar_table(pvar_table, pvar_filename, verbose = FALSE)

Arguments

pvar_table

a tibble with as much rows as SNPs. It has the following columns:

  • CHROM: the chromosome

  • POS: the position on the chromosome

  • ID: the SNP ID

  • REF: the reference variant

  • ALT: the alternate variant

The uppercase column names are those as used by PLINK2.

pvar_filename

name of a PLINK2 .pvar file Use read_plink2_pvar_file to read a PLINK2 .pvar 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

pvar_table <- get_test_pvar_table()
pvar_filename <- get_plinkr_tempfilename(fileext = ".pvar")
save_pvar_table(
  pvar_table = pvar_table,
  pvar_filename = pvar_filename
)
file.remove(pvar_filename)

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