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

Add option to report output directly in "molten" format? #37

Closed
boasvdp opened this issue Feb 5, 2020 · 3 comments
Closed

Add option to report output directly in "molten" format? #37

boasvdp opened this issue Feb 5, 2020 · 3 comments
Assignees

Comments

@boasvdp
Copy link

boasvdp commented Feb 5, 2020

I find myself often using Python scripts to convert the SNP difference matrix to a "molten" format, such as that:

snp-dists 0.6.3 strain1 strain2
strain1 0 5
strain2 5 0

becomes

strain1 strain1 0
strain1 strain2 5
strain2 strain1 5
strain2 strain2 0

Or something along these lines.

Would this be useful for snp-dists? It is not a big issue putting the output through a script everytime but it might be a bit easier for looking up specific pairs.

@kloetzl
Copy link
Contributor

kloetzl commented Feb 5, 2020

Reminds me of this discussion for mash, just the other way round.

@tseemann tseemann self-assigned this Mar 1, 2020
tseemann added a commit that referenced this issue Mar 1, 2020
@tseemann
Copy link
Owner

tseemann commented Mar 1, 2020

@kloetzl lol - yes indeed!

@boasvdp this wasn't a difficult one, thanks for the idea. what tools uses molten format?

@tseemann tseemann closed this as completed Mar 1, 2020
@boasvdp
Copy link
Author

boasvdp commented Mar 6, 2020

Great, thanks! I often find it easier for parsing the comparisons in my own scripts (e.g. SNP histograms) :-)

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

No branches or pull requests

3 participants