save_bed_table: Save a '.bed' table to file.

View source: R/save_bed_table.R

save_bed_tableR Documentation

Save a .bed table to file.

Description

Save a .bed table to file

Usage

save_bed_table(bed_table, bed_filename, verbose = FALSE)

Arguments

bed_table

a table that maps the SNPs to the individuals, of which the column names are the names of the individuals, the row names are the names of the SNPs, and the values are the SNP variant. Use get_test_bed_table to get a .bed table as used in testing. Use read_plink_bed_file to read a PLINK .bed file. Use check_bed_table to test if a .bed table is valid. See also the bed file format reference at https://www.cog-genomics.org/plink2/formats#bed

bed_filename

name of a PLINK .bed file Use read_plink_bed_file to read a PLINK .bed 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

bed_table <- get_test_bed_table()
bed_filename <- get_plinkr_tempfilename(fileext = ".bed")
save_bed_table(
  bed_table = bed_table,
  bed_filename = bed_filename
)
file.remove(bed_filename)

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