注册 登录  
 加关注
   显示下一条  |  关闭
温馨提示!由于新浪微博认证机制调整,您的新浪微博帐号绑定已过期,请重新绑定!立即重新绑定新浪微博》  |  关闭

云之南

风声,雨声,读书声,声声入耳;家事,国事,天下事,事事关心

 
 
 

日志

 
 
关于我

专业背景:计算机科学 研究方向与兴趣: JavaEE-Web软件开发, 生物信息学, 数据挖掘与机器学习, 智能信息系统 目前工作: 基因组, 转录组, NGS高通量数据分析, 生物数据挖掘, 植物系统发育和比较进化基因组学

网易考拉推荐

Bioinformatics applications at University of Canterbury HPC  

2013-06-14 18:39:23|  分类: 生信分析软件 |  标签: |举报 |字号 订阅

  下载LOFTER 我的照片书  |
https://technical.bestgrid.org/index.php/Bioinformatics_applications_at_University_of_Canterbury_HPC

Bioinformatics applications at University of Canterbury HPC

From BeSTGRID

Jump to: navigation, search

A number of Bioinformatics applications have been already installed on the University of Canterbury HPC (p575). This page lists the tricks that very necessary to compile the applications.

Note: this page has been replicated from the UCSC Admin wiki, where it has its master copy as AppsBioinformatics. Please contact the author (Vladimir Mencl) before modifying this page.

Contents

[hide]

[edit] List of Bioinformatics applications

Unless noted otherwise, the packages are installed on both AIX and Linux. They are installed in /usr/local/pkg/<appname>/<version> and binaries are symlinked to /usr/local/bin.

  • BayesPhylogenies 1.0
  • BEAST 1.4.4
  • LAMARC 2.1 (Linux only)
  • MrBayes 3.1.2 (with local modifications)
  • ClustalW 1.83
  • ClustalW-MPI 0.13
  • ModelTest 3.7
  • PAUP 4.0beta
  • Structure 2.2.2

[edit] Installing BayesPhylogenies

Download link: http://www.evolution.rdg.ac.uk/BayesPhy.html Note that source code is not publicly available, the page contains only precompiled binaries - including support for Linux x86. If you need the source code, contact either Vladimir Mencl, or the authors directly.

  • AIX: fix source code :-)
    • in pmatrix.c, comment out
            extern int isnan (double);
    • in BayesPhylogenies.c, line 589
            fix C++ style comment (//) to /* */
    • (reported only by mpcc)
  • AIX UP compile:
 xlc  -o BayesPhylogenies -lm -w -O3 *.c ./MathLib/*.c
  • AIX MPI compile:
 mpcc -o BayesPhylogenies -lm -w -O3 -DMPI_ENABLED *.c ./MathLib/*.c
  • Linux-UP:
 xlc -o BayesPhylogenies -lm -w -O3 *.c ./MathLib/*.c
    • or could also
 gcc -o BayesPhylogenies -lm -w -O3 *.c ./MathLib/*.c
  • Linux-MPI
    mpcc -compiler xlc -o BayesPhylogenies-xlc -lm -w -O3 -DMPI_ENABLED *.c ./MathLib/*.c

[edit] Installing ClustalW

Download link: ftp://ftp.ebi.ac.uk/pub/software/unix/clustalw/

  • optionally edit makefile and set CC=xlc
  • linux and AIX: make

[edit] Installing ClustalW-MPI

Download link: http://packages.debian.org/unstable/source/clustalw-mpi

  • edit Makefile and set
    • Linux:
       CC      = mpcc -compiler xlc
    • AIX:
       CC      = mpcc


[edit] Installing ModelTest

Download link: http://darwin.uvigo.es/software/modeltest.html

Linux and AIX: edit Makefile

  1. set CMP and LD to xlc
  2. remove "-fast" from LD options

[edit] Installing PAUP

Download: this is commercial software and you need to purchase a license. See http://paup.csit.fsu.edu/ for more information.

Nothing to do: already binary

[edit] Installing Structure

Downloads link: http://pritch.bsd.uchicago.edu/software/ Only binaries available at the site - email authors for source code.

Structure: no changes, "make"

Compiled with gcc. Could compile with xlc (edit Makefile, remove "-shared" option), but xlc gives warnings about -O3 optimization - so rather stay with author's decision on how to optimize.

[edit] Installing LAMARC

Download link: http://evolution.genetics.washington.edu/lamarc/lamarc.html

  • AIX: not supported OS
  • Linux: depends on wxWidgets (at least 2.8.3).
    • install gtk2-devel from RPM (thanks Colin!)
    • compile and install wxWidgets
  cd wxWidgets-2.8.4/
  ./configure --prefix=/usr/local/pkg/wxWidgets/2.8.4/
  make
  make install
  • compile and install LAMARC
  cd ../lamarc
  ./configure --prefix=/usr/local/pkg/lamarc/2.1 --with-wx-config=/usr/local/pkg/wxWidgets/2.8.4/bin/wx-config

[edit] Installing BEAST

Download link: http://beast.bio.ed.ac.uk/Main_Page

BEAST comes as a precompiled Java package, but uses a native library for optimized computation. If the library is not available, BEAST uses an alternative non-optimized Java implementation - so we want the library to be available. The source code of the library is in the native directory, and the compiled library should replace the precompiled Linux x86 file in the lib directory.

  • Check if the native libraries work: run
./bin/beast ./examples/testMCMC.xml 

and check if the output includes

TreeLikelihood using native nucleotide likelihood core


In BEAST-1/native:

  • AIX:
 cd BEAST.v1.4.4/native
 JAVA_HOME=/usr/java14 gmake -f Makefile.linux
  • New try (64-bit):
OBJECT_MODE=64 JAVA_HOME=/usr/local/pkg/java/version/sdk gmake -f Makefile.linux 
  • fails with
gcc -O2 -funroll-loops -fPIC -I/usr/local/pkg/java/version/sdk/include/ -I/usr/local/pkg/java/version/sdk/include/linux -c NucleotideLikelihoodCore.c
Assembler:
/tmp//ccBWYEhZ.s: line 10: 1252-191 Only .llong should be used for relocatable expressions.
/tmp//ccBWYEhZ.s: line 317: 1252-191 Only .llong should be used for relocatable expressions.
/tmp//ccBWYEhZ.s: line 648: 1252-191 Only .llong should be used for relocatable expressions.
/tmp//ccBWYEhZ.s: line 964: 1252-191 Only .llong should be used for relocatable expressions.
gmake: *** [NucleotideLikelihoodCore.o] Error 1
  • try 3:
OBJECT_MODE=64 xlc  -I/usr/local/pkg/java/version/sdk/include/ -I/usr/local/pkg/java/version/sdk/include/linux -c NucleotideLikelihoodCore.c
OBJECT_MODE=64 xlc -o libNucleotideLikelihoodCore.so -qmkshrobj NucleotideLikelihoodCore.o 
    • WORKED - same worked for Linux 64-bit
* Linux:
 cd BEAST.v1.4.4/native
 JAVA_HOME=/opt/IBMJava2-ppc-142 make -f Makefile.linux
  • Linux: fix java startup/PATH - edit bin/beast
JAVA_HOME=/opt/IBMJava2-ppc-142
JRE_HOME=$JAVA_HOME/jre
PATH=$JAVA_HOME/bin:$JRE_HOME/bin:$PATH
export JAVA_HOME
export PATH

And in both cases, copy ./native/libNucleotideLikelihoodCore.so into ./lib/libNucleotideLikelihoodCore.so

  • Linux on x86 (CentOS)
    • no changes necessary, runs straight out of the box.

[edit] Installing MrBayes

Download link: http://mrbayes.csit.fsu.edu/download.php

Installing MrBayes is theoretically just the matter of typing make - but there is a number of tweaks involved, so here they are documented:

    patch -R -p 1 < ~/mrbayes-patches/downloaded/mb_64bit-safe.patch
    OBJECT_MODE=64 make _64BIT=yes
  • Note, an easier way then editing Makefile with all options is passing them as Make variables:
    • Likely to work an a GNU/Linux system:
      make _64BIT=yes MPI=yes USEREADLINE=no"
    • With IBM Visual Age compilers:
      OBJECT_MODE=64 make _64BIT=yes MPI=yes USEREADLINE=no CC=mpcc OPTFLAGS="-q64 -qarch=pwr7 -qtune=pwr7 -O2"
      • Note: this needs still editing the Makefile to make the assignments to CC conditional (?=) - and also commenting out "-Wall" from CFLAGS

[edit] Infernal

Infernal "is for searching DNA sequence databases for RNA structure and sequence similarities.".

I have installed Infernal just on the Linux part of the IBM p575.

I have tried installing it on AIX:

wget ftp://selab.janelia.org/pub/software/infernal/infernal.tar.gz
gtar xzf infernal.tar.gz
cd infernal-1.0
CC=xlc MPICC=mpcc ./configure --enable-mpi

But it failed with:

mpcc -g  -DHAVE_CONFIG_H  -L.. -o esl-afetch esl-afetch.o  -leasel   -lm
ld: 0711-317 ERROR: Undefined symbol: .va_copy
ld: 0711-345 Use the -bloadmap or -bnoquiet option to obtain more information.

It looks like va_copy is not supported by the XLC runtime libraries, not evne on Linux.

I have however succeeded compiling it with gcc on Linux, as a 64-bit parallel + serial application.

  • Parallel version:
export OBJECT_MODE=64 MP_COMPILER=gcc CC="gcc -m64" MPICC=mpcc
./configure --enable-mpi
gmake
  • Serial version:
export OBJECT_MODE=64 MP_COMPILER=gcc CC="gcc -m64" MPICC=mpcc
./configure
gmake

Works all fine.

[edit] MsBayes

Install MsBayes from http://msbayes.sourceforge.net/

  • So far installed on ngcompute.canterbury.ac.nz
  • Download tarball, extract
  • Edit Makefile and change PREFIX=/opt/shared/msbayes/20081106
  • Install dependency libraries:
    yum install gsl gsl-devel
  • Compile:
    gmake
  • To run AcceptRej, one also needs R, available in the EPEL repository
rpm -Uvh http://download.fedora.redhat.com/pub/epel/4/i386/epel-release-4-9.noarch.rpm
yum install R
  评论这张
 
阅读(1231)| 评论(3)
推荐 转载

历史上的今天

在LOFTER的更多文章

评论

<#--最新日志,群博日志--> <#--推荐日志--> <#--引用记录--> <#--博主推荐--> <#--随机阅读--> <#--首页推荐--> <#--历史上的今天--> <#--被推荐日志--> <#--上一篇,下一篇--> <#-- 热度 --> <#-- 网易新闻广告 --> <#--右边模块结构--> <#--评论模块结构--> <#--引用模块结构--> <#--博主发起的投票-->
 
 
 
 
 
 
 
 
 
 
 
 
 
 

页脚

网易公司版权所有 ©1997-2016