check_bim_table: Check if a '.bim' table is valid.

View source: R/check_bim_table.R

check_bim_tableR Documentation

Check if a .bim table is valid.

Description

Check if a .bim table is valid. Will stop if not

Usage

check_bim_table(bim_table)

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.

Value

Nothing. Will stop if the bim_table is invalid

Author(s)

Richèl J.C. Bilderbeek

Examples

check_bim_table(get_test_bim_table())
check_bim_table(read_plink_bim_file(get_plinkr_filename("toy_data.bim")))

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