magnusdv / forrel

Forensic pedigree analysis and relatedness inference
GNU General Public License v2.0
10 stars 0 forks source link

kinshipLR complains about missing linkage map #44

Closed thoree closed 2 years ago

thoree commented 2 years ago

kinshipLR complains about missing linkage map for a case with one marker. The problem goes away if the unnecessary call to transferMarkers is dropped. library(forrel)

> Loading required package: pedtools

library(ibdsim2) x = nuclearPed(1) pattern = ibdsim(x, 1, verbose = F) x = setSNPs(x, forrel::FORCE[1:2,]) id = c(1,3) H1 = profileSimIBD(x, pattern, ids = id, seed = 123)[[1]] H2 = list(singleton(id[1]), singleton(id[2])) H2 = transferMarkers(H1, H2, ids = id) kinshipLR(H1, H2, markers = 1)

> Error: Linked markers detected, but no linkageMap provided

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

magnusdv commented 2 years ago

Thanks, should be fixed now!