From mpiBLAST

Docs: Install

Installation Guide for mpiBLAST-1.6.0

Note: For other versions, please see the INSTALL file shipped in the mpiBLAST package for installation instructions.

Installation for Unix/Linux/BSD/MacOS X

There are four main steps to installing mpiBLAST from source.

  1. Install MPI (if not already installed)
  2. Download and extract mpiBLAST
  3. Compile and install mpiBLAST
  4. Configure mpiBLAST by editing the ~/.ncbirc file

Each of these steps are described in more detail below.

1) MPI installation

Two popular free versions of MPI are MPICH2 and Open MPI. A successful installation of either is sufficient for mpiBLAST to work. Many OS vendors bundle either MPICH2 or Open MPI with the system, making an installation from source unnecessary.

2) Download and extract mpiBLAST and the matching NCBI Toolbox release

2a) Download mpiBLAST from downloads

2b) Extract mpiBLAST
tar -xvzf mpiBLAST-x.y.z.tgz
tar -xvjf mpiBLAST-x.y.z.tbz

3) Compile and install mpiBLAST

3a) Change to the directory containing mpiBLAST
cd /path/to/mpiBLAST-x.y.z
(most likely the command will simply be cd mpiBLAST-x.y.z)

3b) Prepare platform-depdent make files for compiling NCBI BLAST (currently only applicable to IBM Blue Gene systems).
If you are installing mpiBLAST on IBM Blue Gene/L, please review ./ncbi/platform/ and make sure that the compiling configuration (i.e., variables NCBI_AR, NCBI_CC, NCBI_CFLAGS1, NCBI_LDFLAGS1) matches your environment. The configuration file is ./ncbi/platform/ for Blue Gene/P systems.

3c) Configure mpiBLAST

General Unix systems:

IBM Blue Gene/L systems:
./configure ARCH=bluegenel --host=powerpc64-unknown-linux-gnu

IBM Blue Gene/P systems:
./configure ARCH=bluegenep

Useful extra options to 'configure' in addition to the standard configure flags:

3d) Build NCBI libraries
mak ncbi

3e) Build mpiBLAST

3f) Install mpiBLAST
make install
(If the --prefix configure option wasn't used then mpiBLAST will be placed in /usr/local and root priveleges will probably be required to install it)

4) Configure mpiBLAST by editing the ~/.ncbirc file

Before running mpiBLAST, it is necessary to configure the shared and local storage paths that each node will use to access the database. A shared storage path is usually a path to a directory residing on a file server, such as NFS, AFS, or samba. The local storage path is typically a subdirectory within the /tmp directory, e.g. /tmp/mpiblast. As worker nodes search the database, they will copy fragments to the local storage directory. During subsequent searches of the same database, the fragments will already reside in local storage and thus will not need to be copied. Note that diskless nodes can be supported by setting the local storage path to be the same as the shared storage path. To configure mpiBLAST create a .ncbirc file in your home directory that looks like:




The Data variable gives the location of the NCBI Data directory containing BLOSUM and PAM scoring matrices, among other things. The scoring matrix files are necessary for any type of protein BLAST search and should be accessible by all cluster nodes. The BLASTMAT variable also specifies the path to the scoring matrices, and will usually be identical to the Data variable. The BLASTDB variable tells standard NCBI blastall (not mpiBLAST) where to find BLAST databases. As previously mentioned, the Shared and Local variables give the shared and local database paths, respectively. By setting BLASTDB to the same path as Shared, it is possible for NCBI blastall to share the same databases that mpiBLAST uses. In such a configuration, be sure to format all databases with mpiformatdb rather than formatdb.

Installation for Windows

The current release of mpiBLAST, version 1.6.0, is currently unavailable for Windows platforms. Should you wish to obtain a Windows version, please send email to the "developers" mailing list found here: Lists

Retrieved from
Page last modified on July 28, 2010, at 04:07 PM