-
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
Convert to/from Mash sketch format #99
Comments
Hi Lee, the code is already there! Sort of. See the 'import_csv' command
of sourmash.
Also see:
marbl/Mash#27 (comment)
Disclaimer: this has been back burnered, but the code should still work.
You might also be interested in
https://github.com/dib-lab/sourmash/blob/dd18fdd89d4a061b8fca2ee7e529b0064066704b/utils/compute-dna-mh-another-way.py
which shows you how to construct a JSON (we switched recently :) signature
from any collection of hashes.
|
Ok. So to import a mash sketch to Sourmash, I would use the |
On Mon, Jan 09, 2017 at 08:24:10AM -0800, Lee Katz wrote:
Ok. So to import a mash sketch to Sourmash, I would use the `mash info -d` command to make a dump and then `sourmash import_csv`?
Yes, I think.
I'm not sure where the mash support for this stands, but the sourmash side
of things is in our tests so that code should work! If you run into mash
trouble let me know and I'll see what I can do.
|
Thanks! |
(and if it works and you get a chance to report back, that'd be nice too :)
|
Hi @ctb , is there a new version of this command line script for converting JSON<=>MSH? I don't see this script in the latest version but I would like to use it again.
|
Yes! Please see sourmash signature import and export!!
…--
Titus Brown, ctbrown@ucdavis.edu<mailto:ctbrown@ucdavis.edu>
On Jan 15, 2019, at 11:27 AM, Lee Katz <notifications@github.com<mailto:notifications@github.com>> wrote:
Hi @ctb<https://github.com/ctb> , is there a new version of this command line script for converting JSON<=>MSH? I don't see this script in the latest version but I would like to use it again.
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub<#99 (comment)>, or mute the thread<https://github.com/notifications/unsubscribe-auth/AADHSL0C6VuiVM3h4Tn8fSdZV-U4ohvcks5vDiuvgaJpZM4LeUNF>.
|
Oh that's great! However, I got an error
|
|
Ahh, sorry, the very latest isn’t released yet on conda or pypi, I guess! You can still use the script from an earlier version just fine. We will release 2.0 very soon.
…--
Titus Brown, ctbrown@ucdavis.edu<mailto:ctbrown@ucdavis.edu>
On Jan 15, 2019, at 11:37 AM, Lee Katz <notifications@github.com<mailto:notifications@github.com>> wrote:
sourmash version 2.0.0a11
- loaded from path: /scicomp/home/gzu2/bin/anaconda2/lib/python2.7/site-packages/sourmash
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub<#99 (comment)>, or mute the thread<https://github.com/notifications/unsubscribe-auth/AADHSBEf38RjSKtiyrRIePbVxJc6slgwks5vDi4MgaJpZM4LeUNF>.
|
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Hi @ctb, I was wondering if you could make a Sourmash subcommand to convert back and forth between YAML and the format used for Mash sketches. This would help increase compatibility between Mash and Sourmash.
The text was updated successfully, but these errors were encountered: