get_n_snps_from_map_table: Get the number of SNPs from a '.map' table

View source: R/get_n_snps.R

get_n_snps_from_map_tableR Documentation

Get the number of SNPs from a .map table

Description

Get the number of SNPs from a .map table

Usage

get_n_snps_from_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

the number of SNPs


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