linux运行blast,LINUX下BLAST+(ncbi-blast-2.2.25+-x64-linux)的本地化

64位LINUX下BLAST+的本地化

1 下载程序

在ftp://http://www.doczj.com/doc/b6347edcad51f01dc281f15d.html/blast/executables/blast+/LATEST/下载

ncbi-blast-2.2.25+-x64-linux.tar.gz

2 解压

如解压到用户的主目录(/home/yonpen)下,把解压后的文件夹重新命名为blast,则BLAST+的所有程序在目录/home/yonpen/blast/bin下。

3 添加环境变量

打开终端(Terminal),切换为root用户,执行vim /etc/profile

在最末尾添加export PATH=”/home/yonpen/blast/bin:$PATH”,保存退出。

或直接找到/etc/profile这个文件,在最末尾添加export PATH=”/home/yonpen/blast/bin:$PATH”

此处若成功,则执行blastn -version会出现版本信息。

4 新建

在目录/home/yonpen/blast下新建一个文件夹,命名为db

在/home/yonpen下新建一个文件,命名为.ncbirc

在文件中添加内容

[BLAST]

BLASTDB=/home/yonpen/blast/db

5 下载FASTA格式的数据库

ftp://http://www.doczj.com/doc/b6347edcad51f01dc281f15d.html/blast/db/FASTA/

如下载nr.gz

6 建立BLAST+可用的数据库

打开终端(Terminal),切换到/home/yonpen/blast/db目录下,执行:

makeblastdb –in nr -parse_seqids -hash_index -dbtype prot

7 使用程序

如使用psiblast

在目录/home/yonpen/blast下新建3个文件夹,分别命名为pssm,input,output

设待查询序列所在文件的名字为3.fasta(一个文件放一条序列,且必须为fasta格式)

执行命令:

psiblast -comp_based_stats 1 -evalue 0.001 -num_iterations 3 -db nr -query input/3.fasta -out output/3.txt -out_ascii_pssm pssm/3.pssm

  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值