Provide TableCollection.dump( ) method
See original GitHub issueCurrently to write out a table collection, you have to make it into a tree sequence first, which then just calls table_collection_dump()
under the hood. Unless there’s a good reason not, it’d be convenient sometimes to dump the table collection directly.
Issue Analytics
- State:
- Created 5 years ago
- Comments:8 (6 by maintainers)
Top Results From Across the Web
Dump and load table data using Data Admin Utilities
It is important to dump and reload data definitions and table contents while developing ... You can dump and load table data using:...
Read more >Python API — Tskit manual
TableCollection.tree_sequence () ... Tree sequences are immutable, and provide methods for obtaining trees from the ... TableCollection.dump (file_or_path).
Read more >PerformanceCounters.Dump Method (Microsoft.SqlServer ...
Dump in the Microsoft.SqlServer.Management. ... Dump Method. Reference ... Definition; Overloads; Dump(Boolean); Dump(String); Dump(String, Boolean) ...
Read more >WiredTiger File Forensics Part 2: wt dump - Percona
How to print information directly from the raw WiredTiger files using wt dump, and how to get to the MongoDB binary data inside...
Read more >TreeSequence in tskit - Rust - Docs.rs
pub fn dump_tables(&self) -> Result<TableCollection, TskitError> ... All implementation of this trait provided by tskit use an ISO 8601 format time stamp ...
Read more >
Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free
Top Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
I’ve had a look at this, and it’s trickier than you might imagine given the way the lifetimes of tables within a table collection are handled in Python at the moment. I think this will have to be resolved first with proper read-only access to tables that are owned by a tree sequence.
[clank clank clank]
That was the sound of me kicking this can down the road to 0.6.2…
Also, a method to load them. Currently, if you have a set of tables that are illegal - for instance, because they lack a Population table - there’s no easy way in python to load the tables, add the missing stuff, and then make a tree sequence out of them. I would have called this
msprime.load_tables
, but this is already taken.