magnusdv / pedtools

Tools for working with pedigrees in R
GNU General Public License v3.0
23 stars 3 forks source link

posCm #5

Closed thoree closed 5 years ago

thoree commented 6 years ago

Here is something I don't understand:

library(pedtools)
x = nuclearPed(1)
m = marker(x)
chrom(m) = 1 # OK, but
posCm(m) = 100
#> Error in posCm(m) = 100: could not find function "posCm<-"

Created on 2018-08-16 by the reprex package (v0.2.0).

magnusdv commented 6 years ago

Ah, yes - the setter functions for posCm, posMb and mutmat are not in place yet. So for now you'll have to stick with setting these during construction: marker(x, posCm = 100).

I'll get to these eventually; I'll let this issue stay open as a reminder.