Skip to contents

Combine sketches

Read a project’s sourmash signatures into one table, keeping every hash, and join sample metadata: isolate or metagenome, species and source.

smash_aggregate()
Combine sourmash signatures and join sample metadata
smash_hashes()
One row per sketch and hash

Plot the cohort

See how the cohort was sampled: one row per subject, one point per sample, coloured by source or isolate species.

smash_timeline()
Plot a cohort's sampling timeline

Plot hashes

A hashes x samples heatmap across subjects, sources and time.

smash_heatmap()
Plot a heatmap of hashes across subjects, sources and time

Compare sketches

Compare every pair of sketches in R, with the similarities of sourmash compare, or read that command’s output; and plot the comparisons as a matrix, distribution, ordination or network.

smash_compare()
Compare sourmash sketches in R
smash_compare_matrix()
A samples x samples matrix of similarities
smash_read_compare()
Read the output of sourmash compare
smash_compare_plot()
Plot pairwise comparisons of sketches

Example data

sourmash signatures and run metadata from BioProject PRJNA1556220, installed with the package.

smash_example()
Paths to the example data installed with smash2lab

Package

smash2lab smash2lab-package
smash2lab: aggregate, compare and visualize sourmash sketches