magnusdv / forrel

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

kinshipLR problem #38

Closed thoree closed 4 years ago

thoree commented 4 years ago

I have a problem with kinshipLR. Here's the first example of the documentation:

library(forrel)
#> Loading required package: pedtools
ids = c("A", "B")
sibs = nuclearPed(children = ids)
sibs = simpleSim(sibs, N = 5, alleles = 1:4, ids = ids, 
                 seed = 123, verbose = FALSE)
halfsibs = relabel(halfSibPed(), old = 4:5, new = ids)
unrel = list(singleton("A"), singleton("B"))
kinshipLR(sibs, halfsibs, unrel)
#> Error in vapply(markers, function(i) likelihood(xx, marker1 = i), FUN.VALUE = 1): values must be length 1,
#>  but FUN(X[[1]]) result is length 5

Created on 2020-07-06 by the reprex package (v0.3.0)

magnusdv commented 4 years ago

Thanks!

Recent breaking changes in pedprobr are causing a some hickups in other packages. This one should be fixed now, can you try again with the latest devel versions of pedprobr and forrel?

thoree commented 4 years ago

Thanks - fine now.

man. 6. jul. 2020 kl. 21:10 skrev Magnus Dehli Vigeland < notifications@github.com>:

Thanks!

Recent breaking changes in pedprobr are causing a some hickups in other packages. This one should be fixed now, can you try again with the latest devel versions of pedprobr and forrel?

— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub https://github.com/magnusdv/forrel/issues/38#issuecomment-654415412, or unsubscribe https://github.com/notifications/unsubscribe-auth/ACSUNB6YF6S4ELWMYWRULBTR2IOTNANCNFSM4OR2PYEA .