We provide a number of pre-built collections and indexed databases that you can use with sourmash.
For each k-mer size, three types of databases may be available: Zipfile (.zip
), SBT (.sbt.zip
), and LCA (.lca.jzon.gz
). The Zipfile and SBT databases are built with scaled=1000, and then LCA databases are built with scaled=10,000.
We recommend using the Zipfile databases for sourmash gather
and the SBT databases for sourmash search
. You must use the LCA databases for sourmash lca
operations.
You can read more about the different database and index types here.
Note that the SBT and LCA databases can be used with sourmash v3.5 and later, while Zipfile collections can only be used with sourmash v4.1 and up.
For each prepared database, we have also made taxonomic information available linking each genome with its assigned lineage (GTDB
or NCBI
as appropriate).
For private databases, users can create their own taxonomy
files: the critical columns are ident
, containing the genome accession (e.g. GCA_1234567.1
) and
a column for each taxonomic rank, superkingdom
to species
. If a strain
column is provided, it will also be used.
As of v4.8, we can also use LIN taxonomic information in tax commands that accept the --lins
flag. If used, sourmash tax
commands will require a lin
column in the taxonomy file which should contain ;
-separated LINs, preferably with a standard number of positions (e.g. all 20 positions in length or all 10 positions in length). Some taxonomy commands also accept a lingroups
file, which is a two-column file (name
, lin
) describing the name and LIN prefix of LINgroups to be used for taxonomic summarization.
All databases below can be downloaded via the command line with curl -JLO <url>
, where <url>
is the URL below. This will download an appropriately named file; you can name it yourself by specify '-o <output>
to specify the local filename.
The databases do not need to be unpacked or prepared in any way after download.
You can verify that they've been successfully downloaded (and view database properties such as ksize
and scaled
) with sourmash sig summarize <output>
.
These sketches are of the latest releases of a number of animal genomes. Among other uses, they can be used to detect host contamination in microbial metagenomes.
Each file includes sketches at k=21, k=31, and k=51, at a scaled of 1000, and is under 50 MB.
- Human (hg38) - hg38.sig.zip
- Cow (bosTau9) - bosTau9.sig.zip
- Dog (canFam6) - canFam6.sig.zip
- Horse (equCab3) - equCab3.sig.zip
- Cat (felCat9) - felCat9.sig.zip
- Chicken (galGAl6) - galGal6.sig.zip
- Mouse (mm39) - mm39.sig.zip
- Goat (oviAri4) - oviAri4.sig.zip
- Pig (susCr11) - susScr11.sig.zip
These sketches are for the plant genomes available in GenBank as of 2024-07.
K-mer size | Zipfile collection |
---|---|
k21 | download (7G) |
k31 | download (8.8G) |
k51 | download (11G) |
Lineage spreadsheet for sourmash tax
commands: download
GTDB R08-RS214 consists of 402,709 genomes organized into 85,205 species clusters.
The lineage spreadsheet (for sourmash tax
commands) is available for the genome database (402k).
The GTDB genomic representatives are a low-redundancy subset of Genbank genomes, with 85,205 species-level genomes.
K-mer size | Zipfile collection | SBT | LCA |
---|---|---|---|
21 | download (2.2 GB) | download (4.4 GB) | download (189 MB) |
31 | download (2.2 GB) | download (4.4 GB) | download (221 MB) |
51 | download (2.2 GB) | download (4.4 GB) | download (230 MB) |
These are databases for the full GTDB release, each containing 402,709 genomes.
K-mer size | Zipfile collection | SBT | LCA |
---|---|---|---|
21 | download (12 GB) | download (23 GB) | download (406 MB) |
31 | download (12 GB) | download (23 GB) | download (438 MB) |
51 | download (12 GB) | download (23 GB) | download (460 MB) |
The below zip files contain different subsets of the signatures for all microbial Genbank genomes. The databases were built in March 2022, and are based on the assembly_summary files provided here.
Since some of the files are extremely large, we only provide them in Zip format (which is our smallest and most flexible format).
Note that all of the sourmash search commands support multiple
databases on the command line, so you can search multiple subsets
simply by providing them all on the command line, e.g. sourmash search query.sig genbank-2022.03-{viral,protozoa}-k31.zip
.
Taxonomic spreadsheets for each domain are provided below as well.
47,952 genomes:
genbank-2022.03-viral.lineages.csv.gz
8,750 genomes:
genbank-2022.03-archaea-k21.zip
genbank-2022.03-archaea-k31.zip
genbank-2022.03-archaea-k51.zip
genbank-2022.03-archaea.lineages.csv.gz
1193 genomes:
genbank-2022.03-protozoa-k21.zip
genbank-2022.03-protozoa-k31.zip
genbank-2022.03-protozoa-k51.zip
genbank-2022.03-protozoa.lineages.csv.gz
10,286 genomes:
genbank-2022.03-fungi.lineages.csv.gz
1,148,011 genomes:
genbank-2022.03-bacteria-k21.zip
genbank-2022.03-bacteria-k31.zip
genbank-2022.03-bacteria-k51.zip
genbank-2022.03-bacteria.lineages.csv.gz
GTDB R07-RS207 consists of 317,542 genomes organized into 65,703 species clusters.
The lineage spreadsheet (for sourmash tax
commands) is available for the species database (65k) and for the genome database (317k).
The GTDB genomic representatives are a low-redundancy subset of Genbank genomes, with 65,703 species-level genomes.
K-mer size | Zipfile collection | SBT | LCA |
---|---|---|---|
21 | download (1.7 GB) | download (3.5 GB) | download (181 MB) |
31 | download (1.7 GB) | download (3.5 GB) | download (181 MB) |
51 | download (1.7 GB) | download (3.5 GB) | download (181 MB) |
These are databases for the full GTDB release, each containing 317,542 genomes.
K-mer size | Zipfile collection | SBT | LCA |
---|---|---|---|
21 | download (9.4 GB) | download (19 GB) | download (351 MB) |
31 | download (9.4 GB) | download (19 GB) | download (351 MB) |
51 | download (9.4 GB) | download (19 GB) | download (351 MB) |
All files below are available under https://osf.io/wxf9z/. The GTDB taxonomy spreadsheet (in a format suitable for sourmash lca index
) is available here.
The GTDB genomic representatives are a low-redundancy subset of Genbank genomes.
K-mer size | Zipfile collection | SBT | LCA |
---|---|---|---|
21 | download (1.3 GB) | download (2.6 GB) | download (114 MB) |
31 | download (1.3 GB) | download (2.6 GB) | download (131 MB) |
51 | download (1.3 GB) | download (2.6 GB) | download (137 MB) |
These databases contain the complete GTDB collection of 258,406 genomes.
K-mer size | Zipfile collection | SBT | LCA |
---|---|---|---|
21 | download (7.8 GB) | download (15 GB) | download (266 MB) |
31 | download (7.8 GB) | download (15 GB) | download (286 MB) |
51 | download (7.8 GB) | download (15 GB) | download (299 MB) |
Database release workflows are being archived at sourmash-bio/database-releases.
Some more details on database use and construction:
- Zipfile collections can be used for a linear search. The signatures were calculated with a scaled of 1000, which robustly supports searches for ~10kb or larger matches.
- SBT databases are indexed versions of the Zipfile collections that support faster search. They are also indexed with scaled=1000.
- LCA databases are indexed versions of the Zipfile collections that also contain taxonomy information and can be used with regular search as well as with the
lca
subcommands for taxonomic analysis. They are indexed with scaled=10,000, which robustly supports searches for 100kb or larger matches.
The detailed memory usage of sourmash depends on the type of search, the query, and the database you're searching, but to help guide you here is a range of numbers:
Search type | Query | Database | Max RAM | Time |
---|---|---|---|---|
gather | Bacterial genome | GTDB complete (280k) | 1 GB | 6 minutes |
gather | Simple metagenome | GTDB reps .zip (65k) | 2 GB | 6 minutes |
gather | Real metagenome | All Genbank (1.2m) | 100 GB | 3 hours |
lca summarize | Simple metagenome | GTDB reps .sql (65k) | 400 MB | 20 seconds |
lca summarize | Simple metagenome | GTDB reps .json (65k) | 6.2 GB | 1m 20 seconds |
Please see sourmash#1958 for detailed GTDB numbers and gather paper#47 for detailed Genbank numbers.
Legacy databases are available here.