magnusdv / forrel

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

`profileSim` for list of singletons #39

Closed thoree closed 4 years ago

thoree commented 4 years ago

I don't understand why I always get the same alleles for A and B , as below

library(forrel)
#> Loading required package: pedtools
a = singleton("A")
m = marker(a, alleles = 1:1000)
a = setMarkers(a, m)
b = singleton("B")
m = marker(b, alleles = 1:1000)
b = setMarkers(b, m)
U = list(a, b)
profileSim(U,  N = 1,  ids = c("A", "B"), seed = 1234)
#> Preparing parallelisation using 3 cores
#> Preparing parallelisation using 3 cores
#> [[1]]
#> [[1]][[1]]
#>  id fid mid sex     <1>
#>   A   *   *   1 495/860
#> 
#> [[1]][[2]]
#>  id fid mid sex     <1>
#>   B   *   *   1 495/860

Created on 2020-08-23 by the reprex package (v0.3.0)

magnusdv commented 4 years ago

Thanks, should be fixed as of a48255e.