magnusdv / pedtools

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

New errors breaking (marriage) loops #37

Closed zachariae closed 2 years ago

zachariae commented 2 years ago

Currently, I am facing a new error when trying to break loops: If the pedigree has marriage loops, I got the error:

Marriage loops detected, trying different selection method Loop breakers: 001, 004 Error: Cannot restore to ped object: Disconnected input.

Breaking marriage loops worked for me the last time I used the package. At least I got an error message, when in a pedigree with 2 marriage loops, breaking them was not possible.

Furthermore, if the pedigree is split, and has _comp elements, I got the error-message "WARNING:numerical expression has 2 elements: only the first used". I am not sure, how this worked the last time,

Best wishes, Silke

magnusdv commented 2 years ago

Hi, thanks for reporting the issue.

Could you please provide a reproducible example? (I strongly recommend the reprex package.)

Also, it might be helpful for me to know what sort of analysis you want to do. Many of the high-level functions in the ped suite do the necessary loop breaking internally.

zachariae commented 2 years ago

My analysis is a co-segregation analysis, which seems not to break the loops because I get an error for some files with loops.

magnusdv commented 2 years ago

I see. If you could provide an example I'd be happy to look into it.

magnusdv commented 2 years ago

Closing this now, but feel free to reopen if needed.