Fix build-sketch CI failure due to slash in
github.ref_namefor PRs (#72)
Initial plan
Fix spaces-instead-of-tabs in src/chromosomes.tsv
Co-authored-by: lskatz 14798+lskatz@users.noreply.github.com
- Fix build-sketch job: sanitize ref_name for filenames and fix name mismatch
Co-authored-by: lskatz 14798+lskatz@users.noreply.github.com
Co-authored-by: copilot-swe-agent[bot] 198982749+Copilot@users.noreply.github.com Co-authored-by: lskatz 14798+lskatz@users.noreply.github.com
版权所有:中国计算机学会技术支持:开源发展技术委员会
京ICP备13000930号-9
京公网安备 11010802032778号
Kalamari
Synopsis
Kalamari is a database of completed and public assemblies, backed by trusted institutions. These assemblies can be further used in formatted databases such as Kraken or Blast.
Completed assemblies means that you do not have to worry about the database itself being contaminated with “rogue” contigs. Additionally, most assemblies were obtained by subject matter experts (SMEs) at Centers for Disease Control and Prevention (CDC). Those not from CDC come from other trusted institutions or projects such as FDA-ARGOS. Most genomes are from species that are either studied or are common contaminants in the Enteric Diseases Laboratory Branch (EDLB) at CDC.
Kalamari also comes with a custom taxonomy database such as defining Shigella as a subspecies of Escherichia coli or defining the four lineages of Listeria monocytogenes. These changes have been backed by trusted SMEs in EDLB.
Installation Overview
To start using Kalamari, you’ll need to complete the following steps:
Export Variables for NCBI API
NCBI edirect requests run considerably more smoothly when the following environment variables are set:
NCBI_API_KEYEMAILFollow these instructions to obtain an NCBI API key. This key associates your edirect requests with your username. Without it, edirect requests might be buggy. After obtaining an NCBI API key, add it to your environment with
where
unique_api_keyis a unique hexadecimal number with characters from 0-9 and a-f.You should also set your email address in the
EMAILenvironment variable as edirect tries to guess it, which is an error prone process. Add this variable to your environment withusing your own email address instead of
my@email.address.Installation with
condaWhen Kalamari is installed via conda, all scripts are placed on your
$PATH, and the package data directory is installed inside the conda environment. With the environment activated, run:to see the location of the install and the directories containing the scripts, source files, etc.
This step downloads the reference genome FASTA files for the Kalamari database. Note that this step takes a while to complete. The databases are downloaded using the information contained in
src/chromosomes.tsvandsrc/plasmids.tsv. These files represent the chromosome and plasmid databases, respectively.To download both the chromosome and plasmid databases with default settings, run:
To include incomplete assemblies, please see the download section under manual installation.
Files will output to:
${CONDA_PREFIX}/share/kalamari-<version>/kalamari/For more control over database downloads when using a conda installation, such as selecting databases, specifying an output directory, or setting download parameters, see DOWNLOAD_PL.md.
The taxonomy directory contains a locally generated NCBI taxonomy dump that incorporates Kalamari-specific modifications. It includes filtered
nodes.dmpandnames.dmpfiles representing only the TaxIDs present in the Kalamari database (and their ancestors). This taxonomy is used by downstream tools such as Kraken when building formatted databases.The taxonomy directory will be located at:
${CONDA_PREFIX}/share/kalamari-<version>/taxonomy/Manual installation
Manual installation is viable but less preferred.
Clone this repo locally:
Install dependencies:
wget(orcurl)apt-get install wgetedirect,esearch, etc.)apt install ncbi-entrez-directAdd the
bin/directory to your$PATH:Confirm with:
To make this change persistent across sessions, add the
exportline to your shell profile (e.g.,~/.bashrcor~/.zshrc).Download the databases.
This step downloads the reference genome FASTA files for the Kalamari database. Note that this step takes a while to complete. The databases are downloaded using the information contained in
src/chromosomes.tsvandsrc/plasmids.tsv. These files represent the chromosome and plasmid databases, respectively.Optionally, you can include assemblies that are not complete (i.e., more than one contig per chromosome) by including
src/chromosomes-incomplete.tsvby usingKALAMARI_EXPERIMENTALas shown below.To download both the chromosome and plasmid databases with default settings, run:
To include incomplete assemblies, include
KALAMARI_EXPERIMENTALin the environment. You can either export it or include it when you execute it like so:Files will output to:
<Kalamari_cloned_repo>/share/kalamari-<version>/kalamari/For more control over the database download such as selecting databases, specifying an output directory, or setting download parameters, see DOWNLOAD_PL.md.
The taxonomy directory contains a locally generated NCBI taxonomy dump that incorporates Kalamari-specific modifications. It includes filtered
nodes.dmpandnames.dmpfiles representing only the TaxIDs present in the Kalamari database (and their ancestors). This taxonomy is used by downstream tools such as Kraken when building formatted databases.The taxonomy directory will be located at:
<Kalamari_cloned_repo>/share/kalamari-<version>/taxonomy/Database formatting instructions
How to format and query databases
Contributing
Please see CONTRIBUTING.md
Citation
Katz LS, Griswold T, Lindsey RL, Lauer AC, Im MS, Williams G, Halpin JL, Gómez GA, Kucerova Z, Morrison S, Page A, Den Bakker HC, Carleton HA. 2025. “Kalamari: a representative set of genomes of public health concern.” Microbiol Resour Announc 14:e00963-24. https://doi.org/10.1128/mra.00963-24