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 produce upset plots and rarefaction plots from sourmash signatures #17

Closed taylorreiter closed 1 year ago

taylorreiter commented 1 year ago

This PR makes functions to visualize groups of sourmash signatures. Upset plots show intersections of shared minhashes between samples. Rarefaction curves show sequencing depth saturation for a sample.

I found a bug in the read_signature code where I wasn't writing out the scaled value by default, so I also fixed that in this PR as I needed the scaled value for the plots.

I also figured out where to add descriptions to functions, so this PR has better documentation than previous ones. Eventually I'll go back and add descriptions to the other existing functions.