magnusdv / forrel

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

Missing error in `profileSim` #27

Closed thoree closed 4 years ago

thoree commented 4 years ago

I suggest an error message is issued also in the last of the two below profileSim calls

library(forrel)
#> Loading required package: pedtools
x = nuclearPed(1)
profileSim(x, markers = marker(x, "1" = 1:2), id = 4)
#> Error: Unknown ID label: 4
profileSim(x, markers = marker(x), id = 4)
#> [[1]]
#>  id fid mid sex <1>
#>   1   *   *   1 -/-
#>   2   *   *   2 -/-
#>   3   1   2   1 -/-

Created on 2019-12-01 by the reprex package (v0.3.0)

magnusdv commented 4 years ago

Thanks, should be fixed in c978a9c.