cm2bp: Convert centimorgan to bp

Description Usage Arguments Value Examples

Description

Converts genetic distance in centimorgans to genetic position in bp.

Usage

1
cm2bp(peaks, annot)

Arguments

peaks

A data.frame with chr, start_cm and end_cm information.

annot

A data.frame with chr, cm and bp columns.

Value

The peaks data.frame with the start_bp and end_bp columns inserted.

Examples

1
2
3
4
par <- partbl(list.files(pattern = "-parametric.tbl$")
peaks <- peaks(par)
annot <- read_annot("annotHapMap2U.txt")
cm2bp(peaks, annot)

bahlolab/linkrvis documentation built on May 11, 2019, 5:25 p.m.