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

make it easy to merge multiple signature files #196

Closed
ctb opened this issue Apr 26, 2017 · 5 comments
Closed

make it easy to merge multiple signature files #196

ctb opened this issue Apr 26, 2017 · 5 comments

Comments

@ctb
Copy link
Contributor

ctb commented Apr 26, 2017

'cat *.sig > combined.sig' doesn't work b/c it doesn't produce valid JSON.

@luizirber recommended looking at: https://stackoverflow.com/questions/19529688/how-to-merge-2-json-file-using-jq

@betatim
Copy link
Contributor

betatim commented Apr 26, 2017

Should sourmash learn how to do this? In which case I think using python would be better than adding a new dependency. Or should we point it out in the docs and spread the word about jq?

@ctb
Copy link
Contributor Author

ctb commented Apr 26, 2017 via email

@ctb
Copy link
Contributor Author

ctb commented May 8, 2017

It appears jq add -s * > new-sigs.json does the right thing but with the caveat that the md5sum of the signatures change for some reason. Looks to me like it might be a string encoding or numerical precision/bits problem - will look into it.

@ctb
Copy link
Contributor Author

ctb commented May 14, 2017

huh, OK, I don't see the problem any more. So I will simply add this to the docs when I get the chance.

jq add -s ../GCF*.sig > combined.json
../sourmash compare combined.json

works fine.

@ctb
Copy link
Contributor Author

ctb commented Dec 26, 2018

see #587.

@ctb ctb closed this as completed in #587 Jan 8, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants