smash2lab ships sourmash signatures of 18 SRA runs from BioProject
PRJNA1556220 (skin,
stool and perirectal swab metagenomes from 7 subjects, five of them
sampled 2 to 6 times), and the run table for all 67 runs of the
BioProject, as made by sra2lab::get_bioproject_runs(). They are the
same runs as the example data of the sylph2lab, funprofiler2lab and
rgi2lab packages.
Usage
smash_example(which = c("signatures", "runs", "isolates", "isolate_runs"))Details
The runs were sketched with sra2lab::smash_stream() at k = 31 and
k = 51 (scaled = 1000, seed = 42, with abundances), one file per run and
k-mer size. To keep the package
small, the shipped sketches keep only hashes seen at least twice (as
smash_aggregate(min_abundance = 2) would) and are downsampled to
scaled = 10000 (as smash_aggregate(downsample = 10000) would), and are
named, as sra2lab names signatures, for their parameters (e.g.
SRR41520862_k31_scale10000_seed42_abund.sig.gz). The scripts that made
them are in the package's GitHub repository, under data-raw/.
smash2lab also ships signatures of 30 cultured bacterial isolates from
BioProject PRJNA1570337
("Bacterial isolates from human subjects with a history of MDRO infection
and their healthcare environment"): isolates of six species from the
throat, stool and perirectal swabs of five subjects and from swabs of
their rooms, and the run table for all 239 runs of the BioProject (all
isolates, BioSample package "Microbe"). They were sketched at k = 31 and
k = 51, scaled = 100 (seed = 42, with abundances); the shipped sketches
keep only hashes seen at least five times and are downsampled
to scaled = 1000 (e.g.
SRR42080300_k51_scale1000_seed42_abund.sig.gz).
Examples
smash_example("signatures")
#> [1] "/home/runner/work/_temp/Library/smash2lab/extdata/smash"
list.files(smash_example("signatures"))
#> [1] "SRR41520862_k31_scale10000_seed42_abund.sig.gz"
#> [2] "SRR41520862_k51_scale10000_seed42_abund.sig.gz"
#> [3] "SRR41520863_k31_scale10000_seed42_abund.sig.gz"
#> [4] "SRR41520863_k51_scale10000_seed42_abund.sig.gz"
#> [5] "SRR41520865_k31_scale10000_seed42_abund.sig.gz"
#> [6] "SRR41520865_k51_scale10000_seed42_abund.sig.gz"
#> [7] "SRR41520867_k31_scale10000_seed42_abund.sig.gz"
#> [8] "SRR41520867_k51_scale10000_seed42_abund.sig.gz"
#> [9] "SRR41520868_k31_scale10000_seed42_abund.sig.gz"
#> [10] "SRR41520868_k51_scale10000_seed42_abund.sig.gz"
#> [11] "SRR41520869_k31_scale10000_seed42_abund.sig.gz"
#> [12] "SRR41520869_k51_scale10000_seed42_abund.sig.gz"
#> [13] "SRR41520870_k31_scale10000_seed42_abund.sig.gz"
#> [14] "SRR41520870_k51_scale10000_seed42_abund.sig.gz"
#> [15] "SRR41520873_k31_scale10000_seed42_abund.sig.gz"
#> [16] "SRR41520873_k51_scale10000_seed42_abund.sig.gz"
#> [17] "SRR41520874_k31_scale10000_seed42_abund.sig.gz"
#> [18] "SRR41520874_k51_scale10000_seed42_abund.sig.gz"
#> [19] "SRR41520876_k31_scale10000_seed42_abund.sig.gz"
#> [20] "SRR41520876_k51_scale10000_seed42_abund.sig.gz"
#> [21] "SRR41520878_k31_scale10000_seed42_abund.sig.gz"
#> [22] "SRR41520878_k51_scale10000_seed42_abund.sig.gz"
#> [23] "SRR41520879_k31_scale10000_seed42_abund.sig.gz"
#> [24] "SRR41520879_k51_scale10000_seed42_abund.sig.gz"
#> [25] "SRR41520882_k31_scale10000_seed42_abund.sig.gz"
#> [26] "SRR41520882_k51_scale10000_seed42_abund.sig.gz"
#> [27] "SRR41520884_k31_scale10000_seed42_abund.sig.gz"
#> [28] "SRR41520884_k51_scale10000_seed42_abund.sig.gz"
#> [29] "SRR41520894_k31_scale10000_seed42_abund.sig.gz"
#> [30] "SRR41520894_k51_scale10000_seed42_abund.sig.gz"
#> [31] "SRR41520897_k31_scale10000_seed42_abund.sig.gz"
#> [32] "SRR41520897_k51_scale10000_seed42_abund.sig.gz"
#> [33] "SRR41520902_k31_scale10000_seed42_abund.sig.gz"
#> [34] "SRR41520902_k51_scale10000_seed42_abund.sig.gz"
#> [35] "SRR41520919_k31_scale10000_seed42_abund.sig.gz"
#> [36] "SRR41520919_k51_scale10000_seed42_abund.sig.gz"
smash_example("runs")
#> [1] "/home/runner/work/_temp/Library/smash2lab/extdata/PRJNA1556220_runs.csv"
smash_example("isolates")
#> [1] "/home/runner/work/_temp/Library/smash2lab/extdata/smash_isolates"
smash_example("isolate_runs")
#> [1] "/home/runner/work/_temp/Library/smash2lab/extdata/PRJNA1570337_runs.csv"