uniformMap: Uniform recombination maps

View source: R/map_constructors.R

uniformMapR Documentation

Uniform recombination maps

Description

Create a uniform recombination map of a given length.

Usage

uniformMap(Mb = NULL, cM = NULL, M = NULL, cmPerMb = 1, chrom = 1)

Arguments

Mb

Map length in megabases.

cM

Map length in centiMorgan.

M

Map length in Morgan.

cmPerMb

A positive number; the cM/Mb ratio.

chrom

A chromosome label, which may be any string. The values "X" and "23" have a special meaning, both resulting in the Xchrom attribute being set to TRUE.

Value

An object of class chromMap. See loadMap() for details.

See Also

loadMap(), customMap()

Examples

m = uniformMap(Mb = 1, cM = 2:3)
m
m$male
m$female

mx = uniformMap(M = 1, chrom = "X")
mx
mx$male
mx$female


ibdsim2 documentation built on Aug. 17, 2023, 5:17 p.m.