is_map_table: Determine if a '.map' table is valid.

View source: R/is_map_table.R

is_map_tableR Documentation

Determine if a .map table is valid.

Description

Determine if a .map table is valid.

Usage

is_map_table(map_table, verbose = FALSE)

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.

verbose

the verbosity of a function. Set to TRUE for more output. Use check_verbose to detect if this argument is valid.

Value

TRUE if the table is a valid .map table

Author(s)

Richèl J.C. Bilderbeek

See Also

use check_map_table to check if a table is a valid .map table (i.e. stop if it is not)

Examples

is_map_table(get_test_map_table())
is_map_table(read_plink_map_file(get_plinkr_filename("toy_v1_9.map")))

is_map_table("nonsense")

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