BLAST: blastn/tblastx/blastp/tblastn/blastx

By Haktan Suren
Oct 3rd, 2012
2 Comments
18865 Views

if you need only one best hit for each query, use -num_alignments and -num_descriptions flag as fallows.

Usage:

blastn -query fasta.file -db database_name -outfmt 6 -num_alignments 1 -num_descriptions 1 -out output_file

Example:

blastn -query fasta.file -db nr -outfmt 6 -num_alignments 1 -num_descriptions 1 -out haktan.txt -dust no -task blastn

Output:

tabular form of blast output written in haktan.txt file

Enjoy!

About the Author

Haktan Suren
- Webguru, Programmer, Web developer, and Father :)

2 Responses to “BLAST: blastn/tblastx/blastp/tblastn/blastx”

  1. juhi patel says:

    please suggest me command of protein database… and how to blast nucleotide aginst protein database in blastx..

Wrap your code in <code class="{language}"></code> tags to embed!

Leave a Reply

E-mail address is required for commenting. However, it won't be visible to other users.

Loading Facebook Comments ...
Loading Disqus Comments ...