blastn-vdb
Quick Start
- Command:
blastn_vdb -query query.fa -db <SRA_or_WGS_name> [options] - Local executable:
/home/vimalinx/miniforge3/envs/bio/bin/blastn_vdb - Full reference: See
references/help.md
When To Use This Tool
- Run nucleotide BLAST directly against SRA or WGS-backed VDB data sources.
- Search sequencing reads or aligned reference sequences without first building a local BLAST DB.
- Control whether the search targets unaligned reads, aligned reference sequences, or both via
-sra_mode. - Keep a BLASTN-like workflow while operating in the VDB / SRA ecosystem.
Common Patterns
# 1) Search an accession's unaligned reads with tabular output
blastn_vdb \
-query query.fa \
-db SRR123456 \
-sra_mode 0 \
-outfmt 6 \
-evalue 1e-10 \
-num_threads 8
# 2) Search aligned reference sequences only
blastn_vdb \
-query query.fa \
-db SRR123456 \
-sra_mode 1 \
-out results.txt
# 3) Include filtered reads and cap hit count
blastn_vdb \
-query query.fa \
-db SRR123456 \
-include_filtered_reads \
-max_target_seqs 20 \
-outfmt "6 qaccver saccver pident length evalue bitscore"
Recommended Workflow
- Confirm the target accession or VDB source is available and that you really want SRA-backed search rather than a local BLAST database.
- Set
-sra_modedeliberately:0for unaligned reads,1for aligned reference sequences,2for both. - Use explicit
-outfmt,-evalue, and-max_target_seqssettings so results remain predictable across runs. - Start with a small query set before scaling up to larger accession-backed searches.
Guardrails
-dbhere is an SRA or WGS source name, not a standard local BLAST database path.- The default task is
megablast; override-taskif you needblastn-short,dc-megablast, or another mode. - Use BLAST+ style flags such as
-helpand-version; the usual--helppattern is wrong in this build. -num_descriptionsand-num_alignmentsare incompatible with-max_target_seqs.-include_filtered_readsand-sra_modecan materially change the search universe, so record them in reproducible workflows.