save_map_table: Save a '.map' table to file.

View source: R/save_map_table.R

save_map_tableR Documentation

Save a .map table to file.

Description

Save a .map table to file

Usage

save_map_table(map_table, map_filename, plink_options = create_plink_options())

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.

map_filename

name of a PLINK .map file Use read_plink_map_file to read a PLINK .map file.

plink_options

options to run PLINK, as created by create_plink_options

Author(s)

Richèl J.C. Bilderbeek


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