BLAST: blastn/tblastx/blastp/tblastn/blastx

By Haktan Suren, PhD
Oct 3rd, 2012
4 Comments
35227 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, PhD
- Webguru, Programmer, Web developer, and Father :)

4 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..

  2. Ran says:

    How the -db nr look like?
    Is it a folder containing all my fasta files that I want to align with my query?

    Thank you very much in advance for your answer

    Best

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 ...