smash2lab: aggregate, compare and visualize sourmash sketches
Source:R/smash2lab-package.R
smash2lab-package.Rdsmash2lab picks up where the sourmash functions of
sra2lab (smash_runs(),
smash_stream(), smash_local()) leave off. Its core functions are:
smash_aggregate()read and combine the signature files, keeping every hash, and join sample metadata (such as the run table from
sra2lab::get_bioproject_runs()), recording whether each sample is a cultured isolate (with its species) or a metagenome, and its source.smash_hashes()gives one row per hash.smash_timeline()plot the cohort's sampling timeline: one row per subject, one point per sample, coloured by sample source or by isolate species.
smash_heatmap()plot hashes (rows) across subjects, sample sources and time (columns).
smash_compare()andsmash_compare_plot()compare every pair of sketches in R, with the similarities of
sourmash compare, and plot them as a matrix, a distribution, an ordination or a network.smash_read_compare()readssourmash compareoutput instead.
Details
Example sourmash signatures of 18 SRA runs from BioProject PRJNA1556220
and the BioProject's run table are installed with the package; see
smash_example().