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

dump signature in text format #1

Open
wants to merge 3 commits into
base: master
Choose a base branch
from
Open

dump signature in text format #1

wants to merge 3 commits into from

Conversation

ctb
Copy link
Owner

@ctb ctb commented Jun 3, 2016

Prototype implementation of text dump format for MinHash sketches created by mash; see marbl#27.

@ctb
Copy link
Owner Author

ctb commented Jun 3, 2016

The following now works:

./mash sketch -k 31 short.fa
./mash dump short.fa.msh short.fa.dump
~/dev/sourmash/mash-csv-to-sig.py short.fa.dump

this will put a sourmash signature file in <md5sum>.sig; you can now compare that signature to signatures computed from the murmur64 branch of sourmash, e.g.

~/dev/sourmash/sourmash compute -k 31 -n 1000 short.fa
~/dev/sourmash/sourmash compare -k 31 *.sig

yields

# running sourmash subcommand: compare
loading short.fa.sig
loading 9191284a.sig
0-            short.fa  [ 1.  1.]
1-            short.fa  [ 1.  1.]
min similarity in matrix: 1.0

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