tskit-dev / tskit

Population-scale genomics
MIT License
153 stars 72 forks source link

expand tsk_table_collection_equals? #731

Open mufernando opened 4 years ago

mufernando commented 4 years ago

I don't know how useful this could be to other people, but I always find myself trying to compare two TableCollections. There is a method to check if two table collections are the same, but it would be useful to report which tables differ.

We could add a flag to this method that would trigger the return of a table-by-table check of equality.

jeromekelleher commented 4 years ago

How do you think the information should be passed back?

mufernando commented 4 years ago

I was thinking a tsk_bookmark_t with trues and falses.

jeromekelleher commented 4 years ago

Good idea. We'd need a new function though, we don't want to change the API for tsk_table_collection_equals.