MASH2MATRIX(1)
πΈ NAME πΈ
mash2matrix β bestie, it creates all pairwise distances between samples. every single one. no crumbs left. π
β¨ SYNOPSIS β¨
mash2matrix <matrix_in> > all_distances.csv
okay so you feed it a matrix and it screams a csv of every distance back at you. iconic behaviour honestly.
π¦ DESCRIPTION π¦
It uses mash (<http://mash.readthedocs.io/> β that's the link, go look, i'm not gonna gatekeep) to create all pairwise distances between samples. all of them. the whole friend group gets compared to the whole friend group. π«Ά
NB: the input to mash has to be in the same order as the .pheno file. same order, bestie, i cannot stress this enough. π
to generate <assemblies.fa> you do this:
cut -f 1 metadata.pheno | tr '
' ' '
(yes the line break inside the quotes is literally in the original. that's just how it's written. π)
then you run:
mash sketch -o reference <assemblies.fa>
mash dist reference.msh reference.msh > mash_distances.txt
mash2matrix mash_distances.txt > all_distances.csv
and boom, all_distances.csv is yours. slay. β¨
π AUTHOR π
This manpage was written by Andreas Tille for the Debian distribution, and it can be used for any other usage of the program. shoutout to Andreas fr fr, the manpage ate and left no crumbs. π
and that's the whole page, bestie π β this was mash2matrix version 1.1.2, dating all the way back to March 2017, and you've been reading the User Commands manual. mwah, go compute some distances. ππ¦
π¦ where this page comes from
- debian bookworm: seer 1.1.4-7 Β· GPL-2.0-or-later
- debian trixie: seer 1.1.4-8+b1 Β· GPL-2.0-or-later
- ubuntu jammy: seer 1.1.4-6 Β· GPL-2.0-or-later
- ubuntu noble: seer 1.1.4-7build4 Β· GPL-2.0-or-later
- ubuntu questing: seer 1.1.4-8build3
- ubuntu resolute: seer 1.1.4-8build5 Β· GPL-2.0-or-later
- ubuntu stonking: seer 1.1.4-9build1 Β· GPL-2.0-or-later
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash on : a language model's rewrite of the original, under its terms