The color_compare plugin takes the output matrix file from sourmash compare (similarity matrix, csv) and plots a similarity heatmap of the signatures, with on the y-axis colors that correspond to an arbitrary category set by the categories csv, which is the other input file.
Examples of these categories could be:
- Phylogenetic information of the signature (e.g. family/genus/species)
- Environment that the sequence the sig file was made from originated (e.g. marine, soil, gut)
- Treatment of samples that were used to create sig files (if using metagenome reads)
pip install git+https://github.com/dib-lab/sourmash_plugin_colorcompare.git
sourmash scripts color_compare similarity_matrix.csv categories.csv -o output.png
We suggest filing issues in the main sourmash issue tracker as that receives more attention!
xyz
is developed at https://github.com/sourmash-bio/sourmash_plugin_template.
Bump version number in pyproject.toml
and push.
Make a new release on github.
Then pull, and:
python -m build
followed by twine upload dist/...
.