Command Line Interface Reference
Use seqbank --help to list commands and seqbank COMMAND --help for
complete arguments and options for the installed version.
Engine selection
add, add-sequence-from-file, url, refseq, and dfam accept
--engine rocksdict, --engine lmdb, or --engine speedict when creating
a bank. If omitted, a new bank uses RocksDict if it is installed, otherwise LMDB. Existing banks are detected
automatically; an explicit engine must match their recorded engine.
LMDB is always installed. RocksDict requires the seqbank[rocksdict] extra and
Speedict the seqbank[speedict] extra (Python 3.10–3.12); see Storage engines.
seqbank add sequences.sb sequences.fasta --engine lmdb
seqbank add sequences.sb additional.fasta
seqbank url sequences.sb https://example.com/sequences.fasta --workers 4
seqbank count sequences.sb
Conversion and copying
convert SOURCE DESTINATION --engine ENGINE copies every record, including
internal URL tracking records, into the chosen engine. The destination must not exist; Speedict conversion requires its optional
package. The source is preserved.
If conversion fails, remove the incomplete destination before retrying.
seqbank convert old.sb new.sb --engine lmdb
merge SOURCE DESTINATION merges all records into an existing bank using its recorded engine,
or creates a new bank (RocksDict if installed, otherwise LMDB). Use convert to choose a destination engine.
Neither command performs a byte-for-byte filesystem backup.
Commands
Command |
Purpose |
|---|---|
|
Import sequence files; accepts |
|
Import a file containing one sequence under the chosen accession. |
|
Download and import sequence files; accepts |
|
Download RefSeq files; accepts |
|
Download DFam; accepts |
|
List accessions. |
|
Count stored records, including internal tracking records. |
|
Delete the specified accessions. |
|
Merge records from one bank into another. |
|
Convert to a new bank using a selected engine. |
|
Export sequences; accepts |
|
Plot sequence lengths; accepts |