win下安装带web服务的blast

NCBI又开始不定时抽风,还好让我找到了神器————SequenceServer,作为local blast的前端工具,无论是功能还是UI都已经做的相当nice了。记录下在win10下安装它的过程。
首先,windows下是没有官方支持的,但也没有一棍子打死

While we would like to also support Windows, our resources are limited and we prefer to first concentrate on making SequenceServer great on fewer platforms. It should be possible to run SequenceServer on Windows using Cygwin.

还想什么?!cygwin走起啦。安装过程略微坎坷,但最终还是顺利装上~

1
2
3
4
5
6
7
8
9
10
11
12
------------------------------------------------------------------------
Thank you for installing SequenceServer :)!

To launch SequenceServer execute 'sequenceserver' from command line.

$ sequenceserver


Visit http://sequenceserver.com for more.
------------------------------------------------------------------------

Successfully installed sequenceserver-1.0.7

首先,按照以下顺序安装软件包:

  • devel目录下的makegcc-core
  • ruby目录下的ruby
  • libs目录下的libgmp-devellibcrypt-devel

执行安装步骤:

gem install sequenceserver

顺利的话应该能看见上文的那段文字。紧接着把下好的blast程序以及检索库放到特定的目录,比如\home\usrname\ncbi-blast-2.3.0+以及\home\usrname\blastdb。因为blast是win版本的,路径书写方式和sequenceserver不太一样,所以需要建立些软连接,最后当然是愉快的运行啦:

mklink /D D:\home\usrname\blastdb D:\cygwin64\home\usrname\blastdb
mklink /D D:\tmp D:\cygwin64\tmp
./bin/sequenceserver -P 80

在浏览器打开localhost,不出意外应该能看见blast提交界面了。