tskit-dev / tsinfer

Infer a tree sequence from genetic variation data.
GNU General Public License v3.0
56 stars 13 forks source link

Add checks for flags to checks for ancestors ts #106

Open jeromekelleher opened 6 years ago

jeromekelleher commented 6 years ago

The C code assertions require that nodes cannot be marked as both samples and synthetic.

hyanwong commented 6 years ago

This seems like a sensible assertion. I presume they don't use the same bit flag?

jeromekelleher commented 6 years ago

This was a bit opaque: the assertion is sensible, but we should see the problem earlier and raise a useful error rather than dumping out with a C assertion.