← Back to GenBankVault Overview
Version: 1.1.0
License: GPL-3.0-or-later
Binary: ncbi-genome-vault
This guide walks through installing, building, navigating, and scripting GenBankVault for gated NCBI retrieval, offline SQLite curation, batch Multi-FASTA preparation, and multi-scale sequence inspection.
$env:CARGO_BUILD_JOBS='4'
cargo build --release
# Default user-local SQLite WAL vault (auto-seeds 10 reference records and 2 Sets on first run)
cargo run --release -- gui
# Use a project-specific vault database and an optional NCBI API key
cargo run --release -- --vault-db ./project_vault.sqlite3 --api-key YOUR_KEY gui
By default, GenBankVault persists its SQLite WAL database to the platform local application data directory (GenBankVault/genbank_vault.sqlite3).
The workstation is divided into four coordinated zones:
top_search_and_gates):Offline Vault Mode (forces SQLite-only lookups and queues network requests cleanly) and Auto-Route Gate (infers the biological gate from your query).Upload Accession List, Sync Queue Now, Export Vault JSON, Import Vault JSON, API Key, and About (F1).Ctrl+F): Enter gene symbols, organisms, chromosome synteny phrases, or direct accessions, then press Enter or click Search & Stage. Local SQLite hits appear immediately while live NCBI ESearch + ESummary runs on a background worker thread.5 Gated Modality Pills (1–5): Force or inspect records under Nucleotide, Protein, Circular Genome, Linear Chromosome, or Linear Genome.
Left Sidebar (Saved Sets & Offline Vault):
Homo sapiens COX1)..fasta file, or open Multi-FASTA View (M).View to open a record in the central viewer, -Set to remove an accession from the active Set without deleting the underlying sequence, or Del to remove the record permanently from SQLite.Search / Uploaded Hits -> Set: Select individual hits (or Select All) and click Download Selected to Set / All -> Set to batch-download uncached accessions asynchronously and bind them into your target Set.
Central Workspace (Single Record Viewer / Set Multi-FASTA View):
Single Record Viewer) and batch FASTA preparation (Set Multi-FASTA View) using the mode tabs or pressing M.In Nucleotide and Circular Genome views, switch between Standard (Table 1) and Vert. Mito (Table 2) genetic codes from the viewer toolbar (Code:). Mitochondrial accessions such as NC_012920.1 auto-select Table 2 on load.
Right Sidebar (Annotation & Locus Inspector + Region Sequence Exporter):
Start, End, Strand (+ Forward or - RevComp), and Format (FASTA, GenBank, GFF3), then click:saved_slices) and write it to disk.[Start..End] directly from NCBI Entrez efetch on a background thread when inspecting uncached megabase chromosome windows..txt, .csv, or .tsv file and click Read File, or paste accessions into the monospace editor (# comments are ignored).NP_/XP_/WP_/YP_ -> Protein, GCF_/GCA_ -> Linear Genome, NC_012920/NZ_CP*/CP* -> Circular Genome, NC_0000* -> Linear Chromosome, else Nucleotide), or click Stage & Download Directly to Set to fetch immediately.Set Multi-FASTA View)Switch to Set Multi-FASTA View (M) to prepare clean, downstream-ready FASTA files:
All, Nucleotide Only, or Protein Only.Rich (>ACC | Organism | Gate | length | title), Compact (>ACC [Organism]), or AccessionOnly (>ACC).70, 60, 80, or 0 for single-line unwrapped sequences).N/X counts strictly reflect cached residues; uncached metadata-only records report 0 ambiguous bases).NCBI_API_KEY & Portable Vault Bundles--api-key <KEY> / NCBI_API_KEY environment variable) to raise Entrez throttling from 3 req/s (340 ms spacing) to 10 req/s (105 ms spacing)../genbank_vault_bundle.json, and click Import Vault JSON on another workstation (or in air-gapped environments) to merge records, Sets, and exported slices into SQLite without network access.All shortcuts other than F1/Esc and Ctrl+F are disabled automatically while typing in any input field or when a modal window is open:
| Input | Effect |
|---|---|
Ctrl+F |
Focus the NCBI search input field |
1, 2, 3, 4, 5 |
Select gate 1..5 (Nucleotide through Linear Genome) |
M |
Toggle Single Record Viewer / Set Multi-FASTA View |
+ / = and - |
Zoom in / zoom out inside the central record viewer |
0 |
Reset viewer zoom (1.0x), pan (0.5), and circular ring angle |
Mouse Wheel |
Zoom viewer smoothly |
Click + Drag |
Pan linear genome/chromosome/nucleotide/protein track or rotate circular map |
Hover |
Show vertical/radial crosshair with genomic bp / aa position, GC% / KD score, and feature metadata |
GenBankVault supports scriptable batch ingestion, regional slicing, Set Multi-FASTA export, and offscreen wgpu screenshots:
# Search offline vault, stage all hits into a Set, and export wrapped FASTA
ncbi-genome-vault --vault-db work.sqlite3 search "homo sapiens COX1" --offline --download-all --to-set "COX1"
ncbi-genome-vault --vault-db work.sqlite3 sets --export-fasta "COX1" --output cox1.fasta --wrap 60
# Extract reverse-complement circular origin-spanning GenBank slice from human mitogenome
ncbi-genome-vault --vault-db work.sqlite3 export-region NC_012920.1 --start 16550 --end 20 --reverse-complement --format genbank --output dloop_rc.gbk
# Render offscreen 1600x1000 PNG verification views (1 = Chr1, 2 = rCRS Circular, 3 = Set Multi-FASTA)
ncbi-genome-vault --headless-screenshot view1.png --screenshot-view 1