tskit-dev / tskit

Population-scale genomics
MIT License
147 stars 69 forks source link

Add XTable.drop_metadata #2944

Closed jeromekelleher closed 2 months ago

jeromekelleher commented 2 months ago

It's useful to drop metadata on tables. The only question really is how to deal with schemas, how about:

def drop_metadata(self, keep_schema=False):
     """
     Drops all metadata in this table. By default, the schema is also cleared, except if ``keep_schema`` is True.
     """
benjeffery commented 2 months ago

Makes sense to me - more likely to be issues of confusion if the default is to keep the schema.