#How to use blast from command-line, on Mac OS X.
Install blast
Download executables (binary) of blast-commands for Mac OS X.
Blast2GO Command Line (CLI) is a Java application and can be run on Mac, Linux and Win-dows 64-bit systems. It is always necessary to have Java 64-bit (version 1.6 or higher preferably from Sun/Oracle) installed, at least 1GB of RAM is recommended. The Blast2GO Command Line needs a Blast2GO database (DB) to perform the mapping step.
Blast+ User Manual Mac Pro
Install via ncbi-blast-2.2.28+.dmg
Then, you can use folowing commands,
Next, download fasta-file to create database for blast.In this example, we use Swissprot.
Then, create databese for blast form this fasta-file.
Blast+ User Manual Machine
Use blast from command-line
In this example, we will use blastp
. blastp
is for,
query: protein, database: protein.

Use like following,
Notice:For option -db, you have to write /path/to/db/<db-name>,e.g.,

Blast User Manual Mac Pro
Otherwise (setting just path to db directory /path/to/db/), you will get foloowing error.