blastx
Quick Start
- Command:
blastx - Local executable:
/home/vimalinx/miniforge3/envs/bio/bin/blastx - Version: 2.17.0+
- Full reference: See
references/help.md
When To Use This Tool
- Search nucleotide queries against protein databases by translating the query in six frames.
- Annotate transcripts, contigs, ORF candidates, or metagenomic nucleotide fragments against known proteins.
- Prefer
blastpif the query is already protein, ortblastnif the query is protein and the target is nucleotide. - Use
-task blastx-fastwhen you want speed over maximum sensitivity.
Common Patterns
# 1) Standard translated search with tabular output
blastx \
-query contigs.fa \
-db prot_db \
-outfmt "6 qaccver saccver pident length qstart qend sstart send evalue bitscore qcovhsp frames" \
-evalue 1e-5 \
-max_target_seqs 20 \
-num_threads 8
# 2) Faster search mode for large screens
blastx \
-task blastx-fast \
-query contigs.fa \
-db prot_db \
-outfmt 6
# 3) One-off translated search against a protein FASTA subject and a nonstandard code
blastx \
-query contigs.fa \
-subject proteins.fa \
-query_gencode 11 \
-outfmt 7
Recommended Workflow
- Confirm the query FASTA is nucleotide and the target is protein, either as a BLAST DB or a one-off subject FASTA.
- Set
-taskand-query_gencodedeliberately before comparing output across projects. - Emit tabular output with explicit fields for pipelines.
- Interpret hits using e-value, coverage, frame, and biological plausibility together.
Guardrails
-dband-subjectare mutually exclusive.- Use
-helprather than--help;--versionalso errors in this BLAST+ build. - Translated searches are expensive and can explode into many HSPs, so set
-outfmt,-evalue, and-max_target_seqsexplicitly. -remotechanges execution semantics and is incompatible with local threading.