Skip to content
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

storing signatures/sketches in a sqlite DB #1807

Closed
ctb opened this issue Jan 22, 2022 · 1 comment · Fixed by #1808
Closed

storing signatures/sketches in a sqlite DB #1807

ctb opened this issue Jan 22, 2022 · 1 comment · Fixed by #1808
Labels
code herein lies code

Comments

@ctb
Copy link
Contributor

ctb commented Jan 22, 2022

For tangential reasons, I ended up writing storage and retrieval code for storing actual sketches (incl minhash values) in a SQLite database.

See https://github.com/ctb/2022-sourmash-sqlite.

It seems to work for flat sketches - the following roundtrip does the right thing, at any rate:

./save-mh-to-sqlite.py test-db/all.zip -o all.db
./load-mh-from-sqlite.py all.db -o all.zip

reproduces all the signatures from test-db/all.zip in all.zip, including protein etc.

I still need to add abundance tracking tho. Oops.

Will link in related issues later.

@ctb ctb added the code herein lies code label Jan 22, 2022
@ctb

This comment has been minimized.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
code herein lies code
Projects
None yet
1 participant