save_bim_table: Save a '.bim' table to file.

View source: R/save_bim_table.R

save_bim_tableR Documentation

Save a .bim table to file.

Description

Save a .bim table to file

Usage

save_bim_table(bim_table, bim_filename, verbose = FALSE)

Arguments

bim_table

a tibble of the genetic mapping, with as many rows as SNPs.

Each row contains:

  • chr: the chromosome number

  • id: the SNP ID

  • posg: the position

  • pos: the position

  • ref: something

  • alt: something

Use get_test_bim_table to get a .bim table as used in testing. Use read_plink_bim_file to read a PLINK .bim file. Use check_bim_table to test if a .bim table is valid.

bim_filename

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

bim_table <- get_test_bim_table()
bim_filename <- get_plinkr_tempfilename(fileext = ".bim")
save_bim_table(
  bim_table = bim_table,
  bim_filename = bim_filename
)
file.remove(bim_filename)

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