database (db)
π¦ Manage local and remote Kaptive databases.
Aggregates subcommands for listing, installing, updating, resetting, adding, extracting, and displaying metadata for Kaptive databases.
Aliases: db
usage: kaptive database [options]
[subcommand] ...
π¦ Manage local and remote Kaptive databases.
Aggregates subcommands for listing, installing, updating, resetting, adding,
extracting, and displaying metadata for Kaptive databases.
Aliases:
db
π Global options:
-h, --help show this help message and exit
-V, --verbose Enable verbose output/progress
'database' subcommands:
list (ls) π List all currently installed local databases.
available (avail) π List all available official databases for installation.
add π Add a custom reference database from a GitHub repository.
install π¦ Install known reference databases via keyword.
update π Update installed local databases from remote repositories.
reset π§Ή Uninstall all local databases and reset local cache.
extract π€ Extract database records in FASTA format.
metadata (info) π Print detailed metadata of a Kaptive database.
Subcommands¶
list (ls)¶
π List all currently installed local databases.
Displays the keywords of all compiled .pkl databases found in the user's
local Kaptive directory (~/.kaptive).
Aliases: ls
usage: kaptive database list [options]
π List all currently installed local databases.
Displays the keywords of all compiled `.pkl` databases found in the user's
local Kaptive directory (`~/.kaptive`).
Aliases:
ls
π Global options:
-h, --help show this help message and exit
-V, --verbose Enable verbose output/progress
available (avail)¶
π List all available official databases for installation.
Displays the keywords of all officially supported databases curated in GitHub repositories
that can be installed via kaptive db install <keyword>.
Aliases: avail
usage: kaptive database available [options]
π List all available official databases for installation.
Displays the keywords of all officially supported databases curated in GitHub repositories
that can be installed via `kaptive db install <keyword>`.
Aliases:
avail
π Global options:
-h, --help show this help message and exit
-V, --verbose Enable verbose output/progress
add¶
π Add a custom reference database from a GitHub repository.
Fetches GenBank and TOML metadata files from any specified GitHub owner/repo/branch, compiles the database, and registers it in the local cache.
usage: kaptive database add [options] database owner repo_name
π Add a custom reference database from a GitHub repository.
Fetches GenBank and TOML metadata files from any specified GitHub owner/repo/branch,
compiles the database, and registers it in the local cache.
π₯ Inputs:
database Name for the new database
π GitHub Details:
owner GitHub repository owner
repo_name GitHub repository name
-b, --branch [BRANCH]
GitHub repository branch (default: main)
π Global options:
-h, --help show this help message and exit
-V, --verbose Enable verbose output/progress
install¶
π¦ Install known reference databases via keyword.
Downloads GenBank and TOML definition files from official repositories, compiles
them into vectorized Database objects, and caches
them locally.
usage: kaptive database install [options] database
π¦ Install known reference databases via keyword.
Downloads GenBank and TOML definition files from official repositories, compiles
them into vectorized [`Database`][kaptive.db.core.Database] objects, and caches
them locally.
π₯ Inputs:
database Database keyword (see: `kaptive db avail`) or 'all'
π Global options:
-h, --help show this help message and exit
-V, --verbose Enable verbose output/progress
update¶
π Update installed local databases from remote repositories.
Checks installed databases against their source GitHub repositories for newer versions defined in TOML metadata and re-compiles modified databases.
usage: kaptive database update [options] [database]
π Update installed local databases from remote repositories.
Checks installed databases against their source GitHub repositories for newer
versions defined in TOML metadata and re-compiles modified databases.
π₯ Inputs:
database Database keyword (see: `kaptive db list`) or 'all' (default: all)
π Global options:
-h, --help show this help message and exit
-V, --verbose Enable verbose output/progress
reset¶
π§Ή Uninstall all local databases and reset local cache.
Deletes all compiled .pkl and metadata .json files from the local Kaptive cache directory.
usage: kaptive database reset [options]
π§Ή Uninstall all local databases and reset local cache.
Deletes all compiled `.pkl` and metadata `.json` files from the local Kaptive cache directory.
π Global options:
-h, --help show this help message and exit
-V, --verbose Enable verbose output/progress
extract¶
π€ Extract database records in FASTA format.
Aggregates subcommands for extracting locus nucleotide sequences (loci), gene
coding sequences (genes), and translated amino acid sequences (proteins).
usage: kaptive database extract [options] [subcommand] ...
π€ Extract database records in FASTA format.
Aggregates subcommands for extracting locus nucleotide sequences (`loci`), gene
coding sequences (`genes`), and translated amino acid sequences (`proteins`).
π Global options:
-h, --help show this help message and exit
-V, --verbose Enable verbose output/progress
'extract' subcommands:
loci 𧬠Extract locus nucleotide sequences in FASTA format.
genes π§© Extract gene coding sequences in FASTA format.
proteins π§Ά Extract translated protein sequences in FASTA format.
metadata (info)¶
π Print detailed metadata of a Kaptive database.
Displays summary information including organism, taxon ID, antigen type, synthesis pathway, version, identity threshold, GenBank filename, DOIs, repository URL, and curator contacts.
Aliases: info
usage: kaptive database metadata [options] database
π Print detailed metadata of a Kaptive database.
Displays summary information including organism, taxon ID, antigen type, synthesis pathway,
version, identity threshold, GenBank filename, DOIs, repository URL, and curator contacts.
Aliases:
info
π₯ Inputs:
database Database path or keyword (see: `kaptive db list`)
π Global options:
-h, --help show this help message and exit
-V, --verbose Enable verbose output/progress