magnusdv / forrel

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

return from `getAlleles` #16

Closed thoree closed 5 years ago

thoree commented 5 years ago
# `getAlleles` reportedly returns a
# `character matrix`, this is not the case below.
library(forrel, quietly = T)
v1 = singleton("V1")
m = marker(v1, "V1" = 1:2)
v1 = setMarkers(v1,m)
v2 = singleton("V2")
m = marker(v2, "V2" = 1:2)
v2 = setMarkers(v2,m)
from = list(v1, v2)
g = getAlleles(from, ids = "V1")
is.matrix(g)
#> [1] FALSE

Created on 2019-02-27 by the reprex package (v0.2.1)

magnusdv commented 5 years ago

Thanks! Fixed now (in pedtools): magnusdv/pedtools@57173ca