Arcadia-Science / sourmashconsumr

Working with the outputs of sourmash in R
https://arcadia-science.github.io/sourmashconsumr/
Other
21 stars 3 forks source link

Add functions to plot the output of `sourmash compare` #9

Closed taylorreiter closed 1 year ago

taylorreiter commented 1 year ago

This PR adds default plots for the output of sourmash compare. See this notebook for what I was trying to build toward: https://github.com/Arcadia-Science/2022-prjna853785-sourmash/blob/main/notebooks/20220812-visualize-sourmash-compare-results.ipynb

All of the *Rd and NAMESPACE files are generated automatically using the document() command. The changes to DESCRIPTION were created using use_package().

All tests are passing locally.

Currently the function plot_compare_heatmap doesn't have any tests. I didn't feel like trying to do something clever but probably brittle with capturing the image output. I feel not horrible about this given that the sourmash plot command didn't have tests for a long time.