-
Notifications
You must be signed in to change notification settings - Fork 80
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
update sourmash sig export to export to CSV #1098
Comments
It would be really great if a script like this could be integrated into |
I use csvs all the time to R things like make upset plots, run random forests, and generate rarefaction curves upset plots: #1234 (comment) |
thought: probably want to upgrade import as well, so that it can take in the same format as export! |
…ts new signature saving & loading mechanisms (#2428) Implement support for `load_from` and `save_to` plugins via `importlib.metadata` entry points. This supports a few of the plugins suggested in #1353 I am nominating this as an experimental feature that is not under semantic versioning/not public yet. Documentation page [here, in dev_plugins.html](https://sourmash--2428.org.readthedocs.build/en/2428/dev_plugins.html). A template repo for new plugins is at https://github.com/sourmash-bio/sourmash_plugin_template. ## Implementation/this PR This PR refactors the `_load_database` loading and `SaveSignaturesToLocation` saving code to build a prioritized list of functions to try in order, and then adds hooks in via the new `sourmash.plugins` module that insert additional loading/saving functions into that list. This PR also moves the current saving/loading functions out of `sourmash.sourmash_args` into the `sourmash.save_load` submodule, and simplifies the code a bit. ## Example plugins: - read JSON sigs and manifests from URLs: https://github.com/sourmash-bio/sourmash_plugin_load_urls - read and write signatures in Apache Avro: https://github.com/sourmash-bio/sourmash_plugin_avro - use extension `.avrosig` to write. Specific TODOs: - [x] provide a minimal "getting started" template repo - [x] add tests for multiple plugins & priorities - [ ] maybe try writing CSV export/import as a plugin? #1098 For later: - think about other kinds of plugins - new CLI entry points, picklist classes, tax loading, tax structure, ??. - work on getting avro support into rust over in luizirber/2021-02-11-sourmash-binary-format#1
https://github.com/dib-lab/2020-ibd/blob/master/scripts/sig_to_csv.py
perhaps do this for import too?
The text was updated successfully, but these errors were encountered: