check_map_table: Check if a genetic mapping '.map' table is valid.

View source: R/check_map_table.R

check_map_tableR Documentation

Check if a genetic mapping .map table is valid.

Description

Check if a genetic mapping .map table is valid. Will stop if not

Usage

check_map_table(map_table)

Arguments

map_table

a genetic mapping table.

A map_table is a tibble with the following columns:

  • CHR: the chromosome code or contig name. The chromosome number cannot exceed 95 (https://www.cog-genomics.org/plink/1.9/input#chr_set)

  • SNP: Variant identifier

  • position_cm: Position in morgans or centimorgans. This value is optional. Zeroes denote it is unused

  • BP: Base-pair coordinat

Use read_plink_map_file to read a PLINK .map file. Use check_map_table to test if a genetic mapping table is valid.

Value

a checked .map table, now of class type map_table.

Author(s)

Richèl J.C. Bilderbeek

Examples

check_map_table(get_test_map_table())
check_map_table(read_plink_map_file(get_plinkr_filenames("toy_v1_9.map")))

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