Getting mpiblast

现在下载包文件:

 wget http://www.mpiblast.org/downloads/files/mpiBLAST-1.6.0-pio.tgz

 解压包文件:

 tar xvzf mpiBLAST*.tgz

 然后下载ncbi:

  wget ftp://ftp.ncbi.nih.gov/toolbox/ncbi_tools/old/20061015/ncbi.tar.gz

解压包

  tar xvzf ncbi.tar.gz

Building mpiblast

将ncbi文件move:

mv ncbi mpiblast/ncbi/make/

前进至mpiblast目录:

cd mpiblast

  ./ncbi/make/makedis.csh

 

(Note: If you receive an error about CSH, you don't have the C shell installed, but that's easy to fix withapt-get install csh.)

The above command (makedis.csh) needs to be run three times. The first time you run, it will finish with an error:

make: *** No rule to make target `ncbimain.o', needed by `libncbi.a'.  Stop.Fatal error building NCBI core libraries.
Please be sure that you have X11 and Motif libraries installed.
The NCBI toolkit FAQ at ftp://ftp.ncbi.nih.gov/toolbox/FAQ.html may be helpful.

Run the same command again,

./ncbi/make/makedis.csh

even though it finished with an error. This time, it will take quite a bit longer, and it will finish with a different error:

make: *** No rule to make target `ni_debug.o', needed by `libnetcli.a'.  Stop.
FAILURE primary make status = 0, demo = 0, threaded_demo = 0, net = 2
#######
#        #####   #####    ####   #####
#        #    #  #    #  #    #  #    #
#####    #    #  #    #  #    #  #    #
#        #####   #####   #    #  #####
#        #   #   #   #   #    #  #   #
#######  #    #  #    #   ####   #    #

Run

./ncbi/make/makedis.csh

one last time, and it should finish successfully:

Put the date stamp to the file ../VERSION
*********************************************************
*The new binaries are located in ./ncbi/build/ directory*
*********************************************************

Then it's safe to continue on to building mpiblast itself.

安装mpiblast(安装在/usr/bin):

 ./configure --prefix=/usr/ --with-ncbi=`pwd`/ncbi --host=x86_64

make

make install

 检查是否安装成功:

 which mpiblast

更新一下:

updatedb

locate mpiblast | grep -v src

进入当前用户的home路径(如果是一root进入,则进入/root,否则进入home)编辑.ncbirc:

[mpiBLAST]
Shared=/usr/bin/mpiblast
Local=/usr/bin/mpiblast

Getting Databases:

wget ftp://ftp.ncbi.nlm.nih.gov/blast/db/FASTA/drosoph.nt.gz

Then you'll need to untar or just ungzip them. If they end in .tg.gz, use to tar to untar the file:

tar xvzf yourfile.tg.gz

If they just end in .gz, they're only gzipped, so unzip them with

gunzip yourfile.gz

安装
1) 下载openmpi
2) tar -xzvf openmpi-1.4.3.tar.gz
3) cd openmpi-1.4.3
4) ./configure --prefix=/usr/ | tee ../install.log
5) make all | tee ../make.log
6) make install | tee ../install2.log

配置环境
7) vi /etc/ld.so.conf  最后增加一行
/usr/bin
保存退出
8) /sbin/ldconfig   回车等待。
9) vi /etc/profile, 最后 增加一行:
PATH=${PATH}:/usr//bin
保存退出

10)执行
. /etc/profile

测试
10)cd examples
11) make

12) mpirun  -np 4 ./hello_f90              可以得到类似ppt中的输出

mpi多机时, 需要有machines文件。文件内容如下:

tp1 1 /home/pact/mpich/examples/basic/cpi
tp2 1 /home/pact/mpich/examples/basic/cpi
tp3 1 /home/pact/mpich/examples/basic/cpi

分别表示机器名/ip,  进程个数, 进程名(进程名可以没有); 当使用机器名时, 则需要架设DNS服务器。

mpirun -machinefile ./machine.linux -np 4 ./hello_f90

OK:

使者运行一下:

mpiformatdb -i drosoph.nt --nfrags=4 -pF
  • -i specifies my input file, drosoph.nt
  • --nfrags=4 tells it to make four fragments
  • -p specifies whether the file is a protein file or not. I put F for false, since this is a nucleotide file, not an amino acid file.

Mpiblast will be run just using mpirun or mpiexec, but there are a few important command line arguments. These include

  • -d - the database to be queried against
  • -i - the input file
  • -p - the type of blast query to run, including
    • blastn for nucleotides
    • blastp for proteins
  • -o - the name of the file to save the output in

The command run in its complete state should look something like this:

mpiexec -np 4 /shared/bin/mpiblast -d drosoph.nt -i test.in -p blastn -o results.txt

Of course, if you're using the version of mpiexec with Torque functionality, you'll need to wrap this in a qsub script.

When it's finished running, you should have a new results.txt file that looks something like this:

mpiBlast安装详解以及使用说明相关推荐

  1. Linux下boost库的编译、安装详解

    1.下载源文件 去官网下载:http://www.boost.org/ 这里下载最新版本 wget https://dl.bintray.com/boostorg/release/1.64.0/sou ...

  2. nagios 3.2安装详解(一)

    Nagios 安装详解 对于运维人员来说,获悉服务器状况的信息非常重要,针对监控服务,比较好的有cacti和nagios,cacti使用更简单一些,cacti主要是用来采集信息,CPU.MEM.流量等 ...

  3. Win10 TensorFlow(gpu)安装详解

    Win10 TensorFlow(gpu)安装详解 写在前面:TensorFlow是谷歌基于DistBelief进行研发的第二代人工智能学习系统,其命名来源于本身的运行原理.Tensor(张量)意味着 ...

  4. linux下weblogic版本,Linux下weblogic10.3.6(jar)版本安装详解

    一.安装前的准备 安装weblogic是需要JDK环境的,虽然weblogic有自带的JDK,但是我一般是自己选择JDK进行安装,如果你要自行安装,可以参考我的另一篇博客 https://www.cn ...

  5. Windows 下OpenSSL 安装详解 +图解

    Windows 下OpenSSL 安装详解 +图解 转载于:https://www.cnblogs.com/zhujiabin/p/5088646.html

  6. CentOS下Hive2.0.0集群模式安装详解

    本文环境如下: 操作系统:CentOS 6 32位 Hive版本:2.0.0 JDK版本:1.8.0_77 32位 Hadoop版本:2.6.4 MySQL版本:5.6.30 1. 准备工作 1.1 ...

  7. Kafka单机、集群模式安装详解(二)

    本文环境如下: 操作系统:CentOS 6 32位 JDK版本:1.8.0_77 32位 Kafka版本:0.9.0.1(Scala 2.11) 接上篇 Kafka单机.集群模式安装详解(一) 6. ...

  8. 【Linux开发】Linux下jpeglib库的安装详解

    Linux下jpeglib库的安装详解 首先要下载所需的库压缩包:jpegsrc.v6b.tar.gz或 jpegsrc.v8b.tar.gz 然后将下载的压缩包随便放在和解压到你喜欢的地方. # t ...

  9. mysql-8.0.12语法_mysql-8.0.12 (免安装版) 安装详解

    mysql-8.0.12 (解压版) 安装详解 错误解决 第一步:mysql-8.0.12 (解压版) 下载地址:https://www.mysql.com/downloads/ 第二步:配置初始化m ...

最新文章

  1. TypeScript 初识
  2. PHP免费的空间www.hostinger.co.uk
  3. CSS-非常有用的css变量
  4. 基于朴素贝叶斯分类器的西瓜数据集 2.0 预测分类_机器学习之朴素贝叶斯
  5. GHOST装双系统图文教程
  6. oracle解析md5,Oracle中的MD5加密详解
  7. HTML ===> 页面添加数学公式
  8. 软考高级系统架构设计师系列论文二十五:论信息系统的安全性与保密性设计
  9. 零基础学大数据现实吗?
  10. 腾讯开源云原生成本优化神器 - FinOps Crane
  11. Python基本环境配置
  12. Forethought Future Cup - Elimination Round G. Zoning Restrictions 最大流(最小割)
  13. SQL视图是什么?视图的作用,视图可以更改么?
  14. 学java需要装jdk吗_JAVA基础之JDK安装
  15. 高通batterydata电池曲线数据学习
  16. 开关灯问题两种解决方法
  17. 拼多多2018届毕业生校招笔试题
  18. ABB ACS510变频器恒压供水昆仑通态直接通讯一拖二
  19. P2056 [ZJOI2007] 捉迷藏 【动态点分治】
  20. rndis模块 linux,【填坑求精】荔枝派rndis-host驱动合宙4G模块,荔枝派插入WIN/Unbutu识别为Rndis网卡...

热门文章

  1. I2C设备驱动编写,struct i2c_device_id,struct i2c_driver,i2c_add_driver,i2c_register_board_info
  2. 双稳态电路的两个稳定状态是什么_从双稳态到双“更”稳态 ——叶芳伟课题组在拓扑光子学研究方向上取得新进展...
  3. 【转】我的CV之路第一篇:ITK是啥?
  4. 【转】TCP/IP协议--TCP的超时和重传
  5. 【转】C# WebAPI中为自定义模型设置JSonConverter
  6. 【转】老邹说Magento的前世今生
  7. SharePoint学习札记[3] — Office SharePoint Server 2007部署
  8. .NET 实现并行的几种方式(二)
  9. ABP入门系列(16)——通过webapi与系统进行交互
  10. c++清空输入缓冲区_干货 | C++的输入输出方法