magnusdv / pedtools

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

distributeMarkers and NA #34

Closed thoree closed 2 years ago

thoree commented 2 years ago

The NA-s and -s below appear strange to me:

library(pedtools)
x = distributeMarkers(nuclearPed(), n = 20, prefix = "M")
tail(getMap(x))
#>    CHROM MARKER          MB
#> 15    17    M15 100.2688989
#> 16    19    M16  18.4171132
#> 17    22    M17   0.9116074
#> 18    NA   <NA>  56.8220516
#> 19    NA   <NA>  40.7455858
#> 20    NA   <NA>  33.1612800

Created on 2022-03-29 by the reprex package (v2.0.1)

magnusdv commented 2 years ago

Thanks, solved now!