Become an expert in R — Interactive courses, Cheat Sheets, certificates and more!
Get Started for Free

transferMarkerdata

Transfer marker data


Description

Transfer marker data between pedigrees (in the form of linkdat objects). Both the source and target can be lists of linkdat and/or singleton objects (these must have disjoint ID sets). Any previous marker data of the target is overwritten.

Usage

transferMarkerdata(from, to)

Arguments

from

a linkdat or singleton object, or a list of such objects.

to

a linkdat or singleton object, or a list of such objects.

Value

A linkdat object (or a list of such) similar to to, but where all individuals also present in from have marker genotypes copied over. Any previous marker data is erased.

Author(s)

Magnus Dehli Vigeland

See Also

Examples

x = list(singleton(id=5), nuclearPed(noffs=2))
x = markerSim(x, N=5, alleles=1:5, verbose=FALSE, available=4:5)
y = nuclearPed(noffs=3)
y = transferMarkerdata(x, y)
stopifnot(all.equal(x[[1]], branch(y,5)))
stopifnot(all.equal(x[[2]], subset(y,1:4)))

paramlink

Parametric Linkage and Other Pedigree Analysis in R

v1.1-2
GPL (>= 2)
Authors
Magnus Dehli Vigeland [aut, cre], Thore Egeland [ctb], Guro Doerum [ctb]
Initial release
2018-01-05

We don't support your browser anymore

Please choose more modern alternatives, such as Google Chrome or Mozilla Firefox.