View source: R/marker_distribute.R
distributeMarkers | R Documentation |
Create and attach identical (empty) marker objects, distributed along a set of chromosomes.
distributeMarkers(
x,
n = NULL,
dist = NULL,
chromLen = NULL,
alleles = 1:2,
afreq = NULL,
prefix = "M"
)
x |
A ped object. |
n |
The total number of markers. Either this or |
dist |
A positive number; the distance (in megabases) between markers. |
chromLen |
A numeric vector indicating chromosome lengths (in Mb). By
default, the lengths of the human chromosomes 1-22 are used, as returned by
|
alleles, afreq |
Passed onto |
prefix |
A string used as prefix for marker names. Default: "M". |
Note: When using the dist
parameter, the function treats each chromosome
separately, places one marker at the start and then every dist
megabases.
(See Examples.)
A copy of x
with the indicated markers attached.
x = distributeMarkers(nuclearPed(), n = 10)
getMap(x)
y = distributeMarkers(nuclearPed(), dist = 100)
getMap(y)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.