magnusdv / pedtools

Tools for working with pedigrees in R
GNU General Public License v3.0
23 stars 3 forks source link

`addMarker()` ped list fail #32

Closed magnusdv closed 2 years ago

magnusdv commented 2 years ago
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)