LinuxCommandLibrary

blastx

Translated nucleotide-to-protein sequence search

TLDR

Search translated nucleotide against protein database

$ blastx -query [sequences.fasta] -db [nr] -out [results.txt]
copy
Output in tabular format
$ blastx -query [sequences.fasta] -db [swissprot] -outfmt 6 -out [results.tsv]
copy
Output in XML format
$ blastx -query [sequences.fasta] -db [nr] -outfmt 5 -out [results.xml]
copy
Set E-value threshold
$ blastx -query [sequences.fasta] -db [nr] -evalue [0.001] -out [results.txt]
copy
Limit number of alignments
$ blastx -query [sequences.fasta] -db [nr] -max_target_seqs [10] -out [results.txt]
copy
Use multiple threads
$ blastx -query [sequences.fasta] -db [nr] -num_threads [8] -out [results.txt]
copy
Show help
$ blastx -help
copy

SYNOPSIS

blastx [-query file] [-db database] [-out file] [options]

DESCRIPTION

blastx translates a nucleotide query sequence in all six reading frames and searches it against a protein database. It is part of the NCBI BLAST+ suite for sequence similarity searching.
This tool is useful for identifying protein homologs of nucleotide sequences, annotating genes, and finding coding regions in DNA sequences.

PARAMETERS

-query file

Input nucleotide sequence file (FASTA format)
-db name
Protein database to search against (e.g., nr, swissprot)
-out file
Output file for results
-outfmt format
Output format: 0=pairwise, 5=XML, 6=tabular, 7=tabular with comments
-evalue value
E-value threshold for reporting hits (default: 10)
-max_target_seqs n
Maximum number of aligned sequences to keep
-num_threads n
Number of threads/CPUs to use
-word_size n
Word size for initial match
-matrix name
Scoring matrix (e.g., BLOSUM62, PAM250)
-query_gencode n
Genetic code for query translation (default: 1)

CAVEATS

Requires pre-formatted BLAST databases; use makeblastdb to create them. Large databases like nr require significant disk space and memory. Translation in six frames increases computational time compared to blastn.

HISTORY

BLAST (Basic Local Alignment Search Tool) was originally developed at NCBI by Stephen Altschul and colleagues in 1990. The BLAST+ suite, including blastx, was released in 2009 with improved performance and new features.

SEE ALSO

> TERMINAL_GEAR

Curated for the Linux community

Copied to clipboard

> TERMINAL_GEAR

Curated for the Linux community