magnusdv/pedtools

`addMarker()` ped list fail

Closed this issue · 0 comments

library(pedtools)

This works:

singleton(1) |> addMarker(alleles = 1:2)
#>  id fid mid sex <1>
#>   1   *   *   1 -/-

But not this:

list(singleton(1), singleton(2)) |> addMarker(alleles = 1:2)
#> Error: Genotypes must be named

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