gastic 安装
所有文件下载地址:
ftp://ftp.broadinstitute.org/pub/GISTIC2.0/
cd /home/software/
tar zxf GISTIC_2_0_22.tar.gz
cd GISTIC_2_0_22
#安装MCR环境
./MCRInstaller.bin(安装到当前文件夹中的MATLAB Component Runtime文件夹中)
然后按照 run_gistric_example文件设置环境变量
因为实例文件是csh,我将其改为bash,改动如下:
#!/bin/bash
thisdir=/home/software/gistic/GISTIC_2_0_22
# --- SET UP ENVIRONMENT VARIABLES ---
echo --- setting up environment variables ---
# presumed location of MATLAB Component Runtime (MCR) v7.14
# if the MCR is in a different location, edit the line below
export MCR_HOME=/home/software/gistic/GISTIC_2_0_22/MATLAB_Component_Runtime
export LD_LIBRARY_PATH=/home/software/gistic/GISTIC_2_0_22/MATLAB_Component_Runtime/v714/runtime/glnxa64:/home/software/gistic/GISTIC_2_0_22/MATLAB_Component_Runtime/v714/sys/os/glnxa64:/home/software/gistic/GISTIC_2_0_22/MATLAB_Component_Runtime/v714/sys/java/jre/glnxa64/jre/lib/amd64/native_threads:/home/software/gistic/GISTIC_2_0_22/MATLAB_Component_Runtime/v714/sys/java/jre/glnxa64/jre/lib/amd64/server:/home/software/gistic/GISTIC_2_0_22/MATLAB_Component_Runtime/v714/sys/java/jre/glnxa64/jre/lib/amd64
export XAPPLRESDIR=/home/software/gistic/GISTIC_2_0_22/MATLAB_Component_Runtime/v714/X11/app-defaults
# 此步的变量写错的话,会报错如下:
./gp_gistic2_from_seg: error while loading shared libraries: libmwmclmcrrt.so: cannot open shared object file: No such file or directory
#如果缺少i386相关包的话,会出现错误如下:
My Own Exception: Fatal error loading library /media/qin/software/gistic/GISTIC_2_0_22/MATLAB_Component_Runtime/v714/bin/glnxa64/libmwmclmcr.so Error: libXp.so.6: cannot open shared object file: No such file or directory
#解决方案,
sudo vim /etc/apt/sources.list
添加:deb http://security.ubuntu.com/ubuntu precise-security main
sudo apt-get update
sudo apt install libxp6:i386
sudo apt-get install ia32-libs
sudo apt-get install lib32z1
sudo apt-get install lib32ncurses5
sudo apt-get install libxtst6
sudo apt-get update
sudo apt-get install libxp6
locate libxp6
#显示libxp6包已经存在了,上面安装了一堆东西的具体用处,我也不知道
/usr/share/doc/libxp6
/usr/share/doc/libxp6/changelog.Debian.gz
/usr/share/doc/libxp6/copyright
/var/cache/apt/archives/libxp6_1%3a1.0.1-2ubuntu0.12.04.2_i386.deb
/var/lib/dpkg/info/libxp6:i386.list
/var/lib/dpkg/info/libxp6:i386.md5sums
/var/lib/dpkg/info/libxp6:i386.postinst
/var/lib/dpkg/info/libxp6:i386.postrm
/var/lib/dpkg/info/libxp6:i386.shlibs
# --- RUN GISTIC 2.0 ---
echo --- creating output directory ---
basedir=$thisdir/example_results
mkdir -p $basedir
echo --- running GISTIC ---
segfile=$thisdir/examplefiles/segmentationfile.txt
markersfile=$thisdir/examplefiles/markersfile.txt
refgenefile=$thisdir/refgenefiles/hg16.mat
alf=$thisdir/examplefiles/arraylistfile.txt
cnvfile=$thisdir/examplefiles/cnvfile.txt
echo $LD_LIBIARARY_PATH
./gp_gistic2_from_seg -b $basedir -seg $segfile -mk $markersfile -refgene $refgenefile -alf $alf -cnv $cnvfile -genegistic 1 -smallmem 1 -broad 1 -brlen 0.5 -conf 0.90 -armpeel 1 -savegene 1 -gcm extreme
#文件准备完成后运行
./run_gistric_example
············································································································