save_psam_table: Save a '.psam' table to file.

View source: R/save_psam_table.R

save_psam_tableR Documentation

Save a .psam table to file.

Description

Save a .psam table to file

Usage

save_psam_table(psam_table, psam_filename, verbose = FALSE)

Arguments

psam_table

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

  • FID: the family ID

  • IID: the within-family ID

  • SEX: the sex

  • PHENO1: a phenotypic value

The uppercase column names are those as used by PLINK2.

psam_filename

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

psam_table <- get_test_psam_table()
psam_filename <- get_plinkr_tempfilename(fileext = ".psam")
save_psam_table(
  psam_table = psam_table,
  psam_filename = psam_filename
)
file.remove(psam_filename)

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