Install UCSC genome browser locally

UCSC基因组浏览器在大规模高通量数据的可视化和比较分析研究中发挥着重要的作用。 本文详细介绍了如何一步步在本地安装、配置、高级使用UCSC浏览器。

安装UCSC浏览器

1. 安装mysql+apache

#For Ubuntu user
sudo apt-get install tasksel
sudo apt-get install lamp-server

#For readhat or centos user
yum install httpd mariadb-server mariadb

2. 新建mysql用户

# 用户名:gw
# 密码  :qazplm_gw
create user 'gw'@'localhost' identified by 'qazplm_gw';

3. 同步UCSC所需html文件和运行程序

# 设置UCSC的安装目录为 /var/www/gw
mkdir /var/www/gw

# 同步相应的html文件
rsync -avzP --exclude 'ENCODE' rsync://hgdownload.cse.ucsc.edu/htdocs/ /var/www/gw

# 同步可执行程序到cgi-bin目录下
mkdir /var/www/gw/cgi-bin

# For 64-bit
rsync -avzP rsync://hgdownload.cse.ucsc.edu/cgi-bin/ /var/www/gw/cgi-bin/  #64 bit

# For 32-it
rsync -avzP rsync://hgdownload.cse.ucsc.edu/cgi-bin-i386/ /var/www/gw/cgi-bin/  #32bit

# 更改cgi-bin目录的所有者
chown -R www-data.www-data /var/www/gw/cgi-bin/

4. 把以下内容写入/etc/apahce2/httpd.conf

/etc/apache2$ cat httpd.conf
# XBitHack on 是必须的
# 其它参数的意思参见apache文档
XBitHack on
<Directory /var/www/gw>
	AllowOverride AuthConfig
	Options +Includes
</Directory>

 # the ScriptAlias directive is crucial

ScriptAlias /gw/cgi-bin /var/www/gw/cgi-bin

<Directory "/var/www/gw/cgi-bin">

	AllowOverride None
	Options +ExecCGI -MultiViews +SymLinksIfOwnerMatch

	Order allow,deny
	Allow from all
	AddHandler cgi-script cgi pl

</Directory>

5. 设置Apache解析有执行权限的文件中的SSI指令,然后重启apache

ln -s /etc/apache2/mods-available/include.load /etc/apache2/mods-enabled/
/etc/init.d/apache2 restart

6. 设置数据库配置文件

进入/var/www/gw/cgi-bin/目录,建立hg.conf文件并写入下列内容

db.host=localhost
db.user=gw
db.password=qazplm_gw
db.trackDb=trackDb

central.db=hgcentral
central.host=localhost
central.user=gw
central.password=qazplm_gw
central.domain=

backupcentral.db=hgcentral
backupcentral.host=localhost
backupcentral.user=gw
backupcentral.password=qazplm_gw
backupcentral.domain=

同时运行如下命令sudo chown www-data /var/www/gw/cgi-bin/hg.conf更改文件的所有权。

更多功能的conf文件见http://genome-test.cse.ucsc.edu/~kent/src/unzipped/product/ex.hg.conf.

7. 建立缓存文件夹

rm /var/www/gw/trash
mkdir /var/www/gw/trash
chown www-data.www-data /var/www/gw/trash

8. 提供Javascript文件

mkdir -p /usr/local/apache/htdocs/
ln -s /var/www/gw/js/ /usr/local/apache/htdocs/js
ln -s /var/www/gw/style/ /usr/local/apache/htdocs/style
# 每次重启服务器后,可能要重复上述操作。

9. 这时就应该能够访问了,成功的标志就是访问http://localhost/gw会看到UCSC常见的页面。


加载UCSC浏览器所需数据库内容

1. 安装hgcentral数据库内容

wget http://hgdownload.cse.ucsc.edu/admin/hgcentral.sql
mysql -uroot -proot_passwd -e 'create database hgcentral'
mysql -uroot -proot_passwd -e 'grant all privileges on hgcentral.* to 'gw'@'localhost''
# 加载下载的hgcentral数据库
mysql -ugw -p qazplm_gw hgcentral <hgcentral.sql
mysql -uroot -proot_passwd -e 'create database hgFixed'
mysql -uroot -proot_passwd -e 'grant select on hgFixed.* to 'gw'@'localhost'
  • 出现错误/var/www/gw/cgi-bin/hgGateway: error while loading shared libraries: libssl.so.6: cannot open shared object file: No such file or directory时的解决方案:

      #如果不存在就安装,如果存在就直接建立软连接
      sudo apt-get install libssl0.9.8  
      # Use `locate libssl.so.0.9.8` to find the path of this file.
    
      # For 32 bit
      sudo ln -s /lib/i386-linux-gnu/libssl.so.0.9.8 /usr/lib/libssl.so.6
      sudo ln -s /lib/i386-linux-gnu/libcrypto.so.0.9.8 /usr/lib/libcrypto.so.6
    
    

2. 获取相关物种信息数据库

# 鉴于物种信息数据库比较大,可以在数据盘新建目录用于存储
#change datadir to /home/mysql
/etc/init.d/mysql stop
vim /etc/mysql/my.cnf

#下载数据库
rsync -avzP  rsync://hgdownload.cse.ucsc.edu/mysql/mm9/chromInfo.MYD /home/mysql/mm9
rsync -avzP  rsync://hgdownload.cse.ucsc.edu/mysql/mm9/chromInfo.MYI /home/mysql/mm9
rsync -avzP  rsync://hgdownload.cse.ucsc.edu/mysql/mm9/chromInfo.frm /home/mysql/mm9
rsync -avzP  rsync://hgdownload.cse.ucsc.edu/mysql/mm9/cytoBandIdeo.MYD /home/mysql/mm9
rsync -avzP  rsync://hgdownload.cse.ucsc.edu/mysql/mm9/cytoBandIdeo.MYI /home/mysql/mm9
rsync -avzP  rsync://hgdownload.cse.ucsc.edu/mysql/mm9/cytoBandIdeo.frm /home/mysql/mm9
rsync -avzP  rsync://hgdownload.cse.ucsc.edu/mysql/mm9/grp.MYD /home/mysql/mm9
rsync -avzP  rsync://hgdownload.cse.ucsc.edu/mysql/mm9/grp.MYI /home/mysql/mm9
rsync -avzP  rsync://hgdownload.cse.ucsc.edu/mysql/mm9/grp.frm /home/mysql/mm9
rsync -avzP  rsync://hgdownload.cse.ucsc.edu/mysql/mm9/hgFindSpec.MYD /home/mysql/mm9
rsync -avzP  rsync://hgdownload.cse.ucsc.edu/mysql/mm9/hgFindSpec.MYI /home/mysql/mm9
rsync -avzP  rsync://hgdownload.cse.ucsc.edu/mysql/mm9/hgFindSpec.frm /home/mysql/mm9
rsync -avzP  rsync://hgdownload.cse.ucsc.edu/mysql/mm9/trackDb.MYD /home/mysql/mm9
rsync -avzP  rsync://hgdownload.cse.ucsc.edu/mysql/mm9/trackDb.MYI /home/mysql/mm9
rsync -avzP  rsync://hgdownload.cse.ucsc.edu/mysql/mm9/trackDb.frm /home/mysql/mm9

##赋予权限
chown -R mysql.mysql /home/mysql/mm9

  • 错误解决

    a. Could not connect to database (null) on localhost as gw. Client does not support authentication protocol requested by server; consider upgrading MySQL

      set password for 'gw'@'localhost'=OLD_PASSWORD('qazplm_gw');
      flush privileges;
    

    b. Cant connect to local MySQL server through socket ‘/var/lib/mysql/mysql.sock’

      ln -s /var/run/mysqld/mysqld.sock /var/lib/mysql/mysql.sock
      chmod 666 /var/lib/mysql/mysql.sock
      chmod 755 /var/lib/mysql/
    

3. 下载gbdb数据

#bbi 为encode数据
mkdir -p /home/user/gbdb/mm9
rsync -avzP --delete --max-delete=20 --exclude=bbi \
    rsync://hgdownload.cse.ucsc.edu/gbdb/mm9/ ~/gbdb/mm9/
#---mappability data---------------
rsync -avzp rsync://hgdownload.cse.ucsc.edu/gbdb/mm9/bbi/*.bw ~/gbdb/mm9/bbi
ln -s /home/user/gbdb /gbdb

4. 访问链接http://localhost/gw/cgi-bin/hgGateway?db=mm9

5. 安装参考:


UCSC Track Hub使用

1. 构建UCSC hub track

#首先看目录结构
/var/www/hub$ tree
.
├── genomes.txt
├── hub.txt
└── mm9
    ├── ctcf1.bw
    ├── P3001.bw
    ├── ctcf2.bw
    ├── P3002.bw
    └── trackDb.txt

1 directory, 7 files

#再看每个文件的内容
$cat genomes.txt
genome	mm9
trackDb	mm9/trackDb.txt

$cat hub.txt
hub	myhub
shortLabel	Testhub
longLabel	Testhubsdsdsdsd
genomesFile	genomes.txt
email	my@my.com

$cat mm9/trackDb.txt
# access http://localhost/cgi-bin/hgTracks?db=mm9&amp;hubUrl=https://localhost/hub.txt
# help : http://genome.ucsc.edu/goldenPath/help/hgTrackHubHelp.html
# trackDb.txt syntax http://genome.ucsc.edu/goldenPath/help/trackDb/trackDbHub.html#bigBed_-_Item_or_Region_Track_Settings
#http://davetang.org/muse/2012/03/15/ucsc-genome-browser-custom-overlap-tracks/
track One
container multiWig
shortLabel One
longLabel One
type bigWig
#viewLimits 0:160
visibility full
aggregate transparentOverlay
showSubtrackColorOnUi on
priority 1.2
configurable on
autoScale on
dragAndDrop subtracks
windowingFunction mean+whiskers
maxHeightPixels 100:60:8

track One_ctcf
bigDataUrl ctcf1.bw
shortLabel ctcf1.bw
longLabel ctcf1.bw
parent one
type bigWig
color 0,102,255

track P300
bigDataUrl P3001.bw
shortLabel P3001.bw
longLabel P3001.bw
parent one
type bigWig
color 136,102,255

track Two
container multiWig
shortLabel Two
longLabel Two
type bigWig
#viewLimits 0:160
visibility full
aggregate transparentOverlay
showSubtrackColorOnUi on
windowingFunction maximum
priority 1.2
configurable on
autoScale on
dragAndDrop subtracks

track ctcf2
bigDataUrl ctcf2.bw
shortLabel ctcf2.bw
longLabel ctcf2.bw
parent Two
type bigWig
color 0,102,255

track P3002
bigDataUrl P3002.bw
shortLabel P3002.bw
longLabel P3002.bw
parent Two
type bigWig
color 136,102,255


其它需要添加的数据

1. mm9相关数据表

rsync -avzP  rsync://hgdownload.cse.ucsc.edu/mysql/mm9/all_bacends.frm /home/mysql/mm9/
rsync -avzP  rsync://hgdownload.cse.ucsc.edu/mysql/mm9/all_bacends.MYD /home/mysql/mm9/
rsync -avzP  rsync://hgdownload.cse.ucsc.edu/mysql/mm9/all_bacends.MYI /home/mysql/mm9/
rsync -avzP  rsync://hgdownload.cse.ucsc.edu/mysql/mm9/chromInfo.frm /home/mysql/mm9/
rsync -avzP  rsync://hgdownload.cse.ucsc.edu/mysql/mm9/chromInfo.MYD /home/mysql/mm9/
rsync -avzP  rsync://hgdownload.cse.ucsc.edu/mysql/mm9/chromInfo.MYI /home/mysql/mm9/
rsync -avzP  rsync://hgdownload.cse.ucsc.edu/mysql/mm9/cytoBandIdeo.frm /home/mysql/mm9/
rsync -avzP  rsync://hgdownload.cse.ucsc.edu/mysql/mm9/cytoBandIdeo.MYD /home/mysql/mm9/
rsync -avzP  rsync://hgdownload.cse.ucsc.edu/mysql/mm9/cytoBandIdeo.MYI /home/mysql/mm9/
rsync -avzP  rsync://hgdownload.cse.ucsc.edu/mysql/mm9/description.frm /home/mysql/mm9/
rsync -avzP  rsync://hgdownload.cse.ucsc.edu/mysql/mm9/description.MYD /home/mysql/mm9/
rsync -avzP  rsync://hgdownload.cse.ucsc.edu/mysql/mm9/description.MYI /home/mysql/mm9/
rsync -avzP  rsync://hgdownload.cse.ucsc.edu/mysql/mm9/downloadlist.txt /home/mysql/mm9/
rsync -avzP  rsync://hgdownload.cse.ucsc.edu/mysql/mm9/extFile.frm /home/mysql/mm9/
rsync -avzP  rsync://hgdownload.cse.ucsc.edu/mysql/mm9/extFile.MYD /home/mysql/mm9/
rsync -avzP  rsync://hgdownload.cse.ucsc.edu/mysql/mm9/extFile.MYI /home/mysql/mm9/
rsync -avzP  rsync://hgdownload.cse.ucsc.edu/mysql/mm9/gbCdnaInfo.frm /home/mysql/mm9/
rsync -avzP  rsync://hgdownload.cse.ucsc.edu/mysql/mm9/gbCdnaInfo.MYD /home/mysql/mm9/
rsync -avzP  rsync://hgdownload.cse.ucsc.edu/mysql/mm9/gbCdnaInfo.MYI /home/mysql/mm9/
rsync -avzP  rsync://hgdownload.cse.ucsc.edu/mysql/mm9/gbExtFile.frm /home/mysql/mm9/
rsync -avzP  rsync://hgdownload.cse.ucsc.edu/mysql/mm9/gbExtFile.MYD /home/mysql/mm9/
rsync -avzP  rsync://hgdownload.cse.ucsc.edu/mysql/mm9/gbExtFile.MYI /home/mysql/mm9/
rsync -avzP  rsync://hgdownload.cse.ucsc.edu/mysql/mm9/gbLoaded.frm /home/mysql/mm9/
rsync -avzP  rsync://hgdownload.cse.ucsc.edu/mysql/mm9/gbLoaded.MYD /home/mysql/mm9/
rsync -avzP  rsync://hgdownload.cse.ucsc.edu/mysql/mm9/gbLoaded.MYI /home/mysql/mm9/
rsync -avzP  rsync://hgdownload.cse.ucsc.edu/mysql/mm9/gbMiscDiff.frm /home/mysql/mm9/
rsync -avzP  rsync://hgdownload.cse.ucsc.edu/mysql/mm9/gbMiscDiff.MYD /home/mysql/mm9/
rsync -avzP  rsync://hgdownload.cse.ucsc.edu/mysql/mm9/gbMiscDiff.MYI /home/mysql/mm9/
rsync -avzP  rsync://hgdownload.cse.ucsc.edu/mysql/mm9/gbSeq.frm /home/mysql/mm9/
rsync -avzP  rsync://hgdownload.cse.ucsc.edu/mysql/mm9/gbSeq.MYD /home/mysql/mm9/
rsync -avzP  rsync://hgdownload.cse.ucsc.edu/mysql/mm9/gbSeq.MYI /home/mysql/mm9/
rsync -avzP  rsync://hgdownload.cse.ucsc.edu/mysql/mm9/gbStatus.frm /home/mysql/mm9/
rsync -avzP  rsync://hgdownload.cse.ucsc.edu/mysql/mm9/gbStatus.MYD /home/mysql/mm9/
rsync -avzP  rsync://hgdownload.cse.ucsc.edu/mysql/mm9/gbStatus.MYI /home/mysql/mm9/
rsync -avzP  rsync://hgdownload.cse.ucsc.edu/mysql/mm9/gbWarn.frm /home/mysql/mm9/
rsync -avzP  rsync://hgdownload.cse.ucsc.edu/mysql/mm9/gbWarn.MYD /home/mysql/mm9/
rsync -avzP  rsync://hgdownload.cse.ucsc.edu/mysql/mm9/gbWarn.MYI /home/mysql/mm9/
rsync -avzP  rsync://hgdownload.cse.ucsc.edu/mysql/mm9/grp.frm /home/mysql/mm9/
rsync -avzP  rsync://hgdownload.cse.ucsc.edu/mysql/mm9/grp.MYD /home/mysql/mm9/
rsync -avzP  rsync://hgdownload.cse.ucsc.edu/mysql/mm9/grp.MYI /home/mysql/mm9/
rsync -avzP  rsync://hgdownload.cse.ucsc.edu/mysql/mm9/hgFindSpec.frm /home/mysql/mm9/
rsync -avzP  rsync://hgdownload.cse.ucsc.edu/mysql/mm9/hgFindSpec.MYD /home/mysql/mm9/
rsync -avzP  rsync://hgdownload.cse.ucsc.edu/mysql/mm9/hgFindSpec.MYI /home/mysql/mm9/
rsync -avzP  rsync://hgdownload.cse.ucsc.edu/mysql/mm9/history.frm /home/mysql/mm9/
rsync -avzP  rsync://hgdownload.cse.ucsc.edu/mysql/mm9/history.MYD /home/mysql/mm9/
rsync -avzP  rsync://hgdownload.cse.ucsc.edu/mysql/mm9/history.MYI /home/mysql/mm9/
rsync -avzP  rsync://hgdownload.cse.ucsc.edu/mysql/mm9/kgAlias.frm /home/mysql/mm9/
rsync -avzP  rsync://hgdownload.cse.ucsc.edu/mysql/mm9/kgAlias.MYD /home/mysql/mm9/
rsync -avzP  rsync://hgdownload.cse.ucsc.edu/mysql/mm9/kgAlias.MYI /home/mysql/mm9/
rsync -avzP  rsync://hgdownload.cse.ucsc.edu/mysql/mm9/kgColor.frm /home/mysql/mm9/
rsync -avzP  rsync://hgdownload.cse.ucsc.edu/mysql/mm9/kgColor.MYD /home/mysql/mm9/
rsync -avzP  rsync://hgdownload.cse.ucsc.edu/mysql/mm9/kgColor.MYI /home/mysql/mm9/
rsync -avzP  rsync://hgdownload.cse.ucsc.edu/mysql/mm9/kgProtAlias.frm /home/mysql/mm9/
rsync -avzP  rsync://hgdownload.cse.ucsc.edu/mysql/mm9/kgProtAlias.MYD /home/mysql/mm9/
rsync -avzP  rsync://hgdownload.cse.ucsc.edu/mysql/mm9/kgProtAlias.MYI /home/mysql/mm9/
rsync -avzP  rsync://hgdownload.cse.ucsc.edu/mysql/mm9/kgProtMap2.frm /home/mysql/mm9/
rsync -avzP  rsync://hgdownload.cse.ucsc.edu/mysql/mm9/kgProtMap2.MYD /home/mysql/mm9/
rsync -avzP  rsync://hgdownload.cse.ucsc.edu/mysql/mm9/kgProtMap2.MYI /home/mysql/mm9/
rsync -avzP  rsync://hgdownload.cse.ucsc.edu/mysql/mm9/kgSpAlias.frm /home/mysql/mm9/
rsync -avzP  rsync://hgdownload.cse.ucsc.edu/mysql/mm9/kgSpAlias.MYD /home/mysql/mm9/
rsync -avzP  rsync://hgdownload.cse.ucsc.edu/mysql/mm9/kgSpAlias.MYI /home/mysql/mm9/
rsync -avzP  rsync://hgdownload.cse.ucsc.edu/mysql/mm9/kgTargetAli.frm /home/mysql/mm9/
rsync -avzP  rsync://hgdownload.cse.ucsc.edu/mysql/mm9/kgTargetAli.MYD /home/mysql/mm9/
rsync -avzP  rsync://hgdownload.cse.ucsc.edu/mysql/mm9/kgTargetAli.MYI /home/mysql/mm9/
rsync -avzP  rsync://hgdownload.cse.ucsc.edu/mysql/mm9/kgTxInfo.frm /home/mysql/mm9/
rsync -avzP  rsync://hgdownload.cse.ucsc.edu/mysql/mm9/kgTxInfo.MYD /home/mysql/mm9/
rsync -avzP  rsync://hgdownload.cse.ucsc.edu/mysql/mm9/kgTxInfo.MYI /home/mysql/mm9/
rsync -avzP  rsync://hgdownload.cse.ucsc.edu/mysql/mm9/kgXref.frm /home/mysql/mm9/
rsync -avzP  rsync://hgdownload.cse.ucsc.edu/mysql/mm9/kgXref.MYD /home/mysql/mm9/
rsync -avzP  rsync://hgdownload.cse.ucsc.edu/mysql/mm9/kgXref.MYI /home/mysql/mm9/
rsync -avzP  rsync://hgdownload.cse.ucsc.edu/mysql/mm9/knownAlt.frm /home/mysql/mm9/
rsync -avzP  rsync://hgdownload.cse.ucsc.edu/mysql/mm9/knownAlt.MYD /home/mysql/mm9/
rsync -avzP  rsync://hgdownload.cse.ucsc.edu/mysql/mm9/knownAlt.MYI /home/mysql/mm9/
rsync -avzP  rsync://hgdownload.cse.ucsc.edu/mysql/mm9/knownBlastTab.frm /home/mysql/mm9/
rsync -avzP  rsync://hgdownload.cse.ucsc.edu/mysql/mm9/knownBlastTab.MYD /home/mysql/mm9/
rsync -avzP  rsync://hgdownload.cse.ucsc.edu/mysql/mm9/knownBlastTab.MYI /home/mysql/mm9/
rsync -avzP  rsync://hgdownload.cse.ucsc.edu/mysql/mm9/knownCanonical.frm /home/mysql/mm9/
rsync -avzP  rsync://hgdownload.cse.ucsc.edu/mysql/mm9/knownCanonical.MYD /home/mysql/mm9/
rsync -avzP  rsync://hgdownload.cse.ucsc.edu/mysql/mm9/knownCanonical.MYI /home/mysql/mm9/
rsync -avzP  rsync://hgdownload.cse.ucsc.edu/mysql/mm9/knownGene.frm /home/mysql/mm9/
rsync -avzP  rsync://hgdownload.cse.ucsc.edu/mysql/mm9/knownGeneMrna.frm /home/mysql/mm9/
rsync -avzP  rsync://hgdownload.cse.ucsc.edu/mysql/mm9/knownGeneMrna.MYD /home/mysql/mm9/
rsync -avzP  rsync://hgdownload.cse.ucsc.edu/mysql/mm9/knownGeneMrna.MYI /home/mysql/mm9/
rsync -avzP  rsync://hgdownload.cse.ucsc.edu/mysql/mm9/knownGene.MYD /home/mysql/mm9/
rsync -avzP  rsync://hgdownload.cse.ucsc.edu/mysql/mm9/knownGene.MYI /home/mysql/mm9/
rsync -avzP  rsync://hgdownload.cse.ucsc.edu/mysql/mm9/knownGenePep.frm /home/mysql/mm9/
rsync -avzP  rsync://hgdownload.cse.ucsc.edu/mysql/mm9/knownGenePep.MYD /home/mysql/mm9/
rsync -avzP  rsync://hgdownload.cse.ucsc.edu/mysql/mm9/knownGenePep.MYI /home/mysql/mm9/
rsync -avzP  rsync://hgdownload.cse.ucsc.edu/mysql/mm9/knownIsoforms.frm /home/mysql/mm9/
rsync -avzP  rsync://hgdownload.cse.ucsc.edu/mysql/mm9/knownIsoforms.MYD /home/mysql/mm9/
rsync -avzP  rsync://hgdownload.cse.ucsc.edu/mysql/mm9/knownIsoforms.MYI /home/mysql/mm9/
rsync -avzP  rsync://hgdownload.cse.ucsc.edu/mysql/mm9/knownToAllenBrain.frm /home/mysql/mm9/
rsync -avzP  rsync://hgdownload.cse.ucsc.edu/mysql/mm9/knownToAllenBrain.MYD /home/mysql/mm9/
rsync -avzP  rsync://hgdownload.cse.ucsc.edu/mysql/mm9/knownToAllenBrain.MYI /home/mysql/mm9/
rsync -avzP  rsync://hgdownload.cse.ucsc.edu/mysql/mm9/knownToEnsembl.frm /home/mysql/mm9/
rsync -avzP  rsync://hgdownload.cse.ucsc.edu/mysql/mm9/knownToEnsembl.MYD /home/mysql/mm9/
rsync -avzP  rsync://hgdownload.cse.ucsc.edu/mysql/mm9/knownToEnsembl.MYI /home/mysql/mm9/
rsync -avzP  rsync://hgdownload.cse.ucsc.edu/mysql/mm9/knownToGnf1m.frm /home/mysql/mm9/
rsync -avzP  rsync://hgdownload.cse.ucsc.edu/mysql/mm9/knownToGnf1m.MYD /home/mysql/mm9/
rsync -avzP  rsync://hgdownload.cse.ucsc.edu/mysql/mm9/knownToGnf1m.MYI /home/mysql/mm9/
rsync -avzP  rsync://hgdownload.cse.ucsc.edu/mysql/mm9/knownToGnfAtlas2.frm /home/mysql/mm9/
rsync -avzP  rsync://hgdownload.cse.ucsc.edu/mysql/mm9/knownToGnfAtlas2.MYD /home/mysql/mm9/
rsync -avzP  rsync://hgdownload.cse.ucsc.edu/mysql/mm9/knownToGnfAtlas2.MYI /home/mysql/mm9/
rsync -avzP  rsync://hgdownload.cse.ucsc.edu/mysql/mm9/knownToLocusLink.frm /home/mysql/mm9/
rsync -avzP  rsync://hgdownload.cse.ucsc.edu/mysql/mm9/knownToLocusLink.MYD /home/mysql/mm9/
rsync -avzP  rsync://hgdownload.cse.ucsc.edu/mysql/mm9/knownToLocusLink.MYI /home/mysql/mm9/
rsync -avzP  rsync://hgdownload.cse.ucsc.edu/mysql/mm9/knownToMOE430A.frm /home/mysql/mm9/
rsync -avzP  rsync://hgdownload.cse.ucsc.edu/mysql/mm9/knownToMOE430A.MYD /home/mysql/mm9/
rsync -avzP  rsync://hgdownload.cse.ucsc.edu/mysql/mm9/knownToMOE430A.MYI /home/mysql/mm9/
rsync -avzP  rsync://hgdownload.cse.ucsc.edu/mysql/mm9/knownToMOE430.frm /home/mysql/mm9/
rsync -avzP  rsync://hgdownload.cse.ucsc.edu/mysql/mm9/knownToMOE430.MYD /home/mysql/mm9/
rsync -avzP  rsync://hgdownload.cse.ucsc.edu/mysql/mm9/knownToMOE430.MYI /home/mysql/mm9/
rsync -avzP  rsync://hgdownload.cse.ucsc.edu/mysql/mm9/knownToPfam.frm /home/mysql/mm9/
rsync -avzP  rsync://hgdownload.cse.ucsc.edu/mysql/mm9/knownToPfam.MYD /home/mysql/mm9/
rsync -avzP  rsync://hgdownload.cse.ucsc.edu/mysql/mm9/knownToPfam.MYI /home/mysql/mm9/
rsync -avzP  rsync://hgdownload.cse.ucsc.edu/mysql/mm9/knownToRefSeq.frm /home/mysql/mm9/
rsync -avzP  rsync://hgdownload.cse.ucsc.edu/mysql/mm9/knownToRefSeq.MYD /home/mysql/mm9/
rsync -avzP  rsync://hgdownload.cse.ucsc.edu/mysql/mm9/knownToRefSeq.MYI /home/mysql/mm9/
rsync -avzP  rsync://hgdownload.cse.ucsc.edu/mysql/mm9/knownToSuper.frm /home/mysql/mm9/
rsync -avzP  rsync://hgdownload.cse.ucsc.edu/mysql/mm9/knownToSuper.MYD /home/mysql/mm9/
rsync -avzP  rsync://hgdownload.cse.ucsc.edu/mysql/mm9/knownToSuper.MYI /home/mysql/mm9/
rsync -avzP  rsync://hgdownload.cse.ucsc.edu/mysql/mm9/knownToU74.frm /home/mysql/mm9/
rsync -avzP  rsync://hgdownload.cse.ucsc.edu/mysql/mm9/knownToU74.MYD /home/mysql/mm9/
rsync -avzP  rsync://hgdownload.cse.ucsc.edu/mysql/mm9/knownToU74.MYI /home/mysql/mm9/
rsync -avzP  rsync://hgdownload.cse.ucsc.edu/mysql/mm9/knownToVisiGene.frm /home/mysql/mm9/
rsync -avzP  rsync://hgdownload.cse.ucsc.edu/mysql/mm9/knownToVisiGene.MYD /home/mysql/mm9/
rsync -avzP  rsync://hgdownload.cse.ucsc.edu/mysql/mm9/knownToVisiGene.MYI /home/mysql/mm9/
rsync -avzP  rsync://hgdownload.cse.ucsc.edu/mysql/mm9/microsat.frm /home/mysql/mm9/
rsync -avzP  rsync://hgdownload.cse.ucsc.edu/mysql/mm9/microsat.MYD /home/mysql/mm9/
rsync -avzP  rsync://hgdownload.cse.ucsc.edu/mysql/mm9/microsat.MYI /home/mysql/mm9/
rsync -avzP  rsync://hgdownload.cse.ucsc.edu/mysql/mm9/multiz30wayFrames.frm /home/mysql/mm9/
rsync -avzP  rsync://hgdownload.cse.ucsc.edu/mysql/mm9/multiz30wayFrames.MYD /home/mysql/mm9/
rsync -avzP  rsync://hgdownload.cse.ucsc.edu/mysql/mm9/multiz30wayFrames.MYI /home/mysql/mm9/
rsync -avzP  rsync://hgdownload.cse.ucsc.edu/mysql/mm9/multiz30way.frm /home/mysql/mm9/
rsync -avzP  rsync://hgdownload.cse.ucsc.edu/mysql/mm9/multiz30way.MYD /home/mysql/mm9/
rsync -avzP  rsync://hgdownload.cse.ucsc.edu/mysql/mm9/multiz30way.MYI /home/mysql/mm9/
rsync -avzP  rsync://hgdownload.cse.ucsc.edu/mysql/mm9/multiz30waySummary.frm /home/mysql/mm9/
rsync -avzP  rsync://hgdownload.cse.ucsc.edu/mysql/mm9/multiz30waySummary.MYD /home/mysql/mm9/
rsync -avzP  rsync://hgdownload.cse.ucsc.edu/mysql/mm9/multiz30waySummary.MYI /home/mysql/mm9/
rsync -avzP  rsync://hgdownload.cse.ucsc.edu/mysql/mm9/pfamDesc.frm /home/mysql/mm9/
rsync -avzP  rsync://hgdownload.cse.ucsc.edu/mysql/mm9/pfamDesc.MYD /home/mysql/mm9/
rsync -avzP  rsync://hgdownload.cse.ucsc.edu/mysql/mm9/pfamDesc.MYI /home/mysql/mm9/
rsync -avzP  rsync://hgdownload.cse.ucsc.edu/mysql/mm9/phastCons30wayEuarch.frm /home/mysql/mm9/
rsync -avzP  rsync://hgdownload.cse.ucsc.edu/mysql/mm9/phastCons30wayEuarch.MYD /home/mysql/mm9/
rsync -avzP  rsync://hgdownload.cse.ucsc.edu/mysql/mm9/phastCons30wayEuarch.MYI /home/mysql/mm9/
rsync -avzP  rsync://hgdownload.cse.ucsc.edu/mysql/mm9/phastCons30way.frm /home/mysql/mm9/
rsync -avzP  rsync://hgdownload.cse.ucsc.edu/mysql/mm9/phastCons30way.MYD /home/mysql/mm9/
rsync -avzP  rsync://hgdownload.cse.ucsc.edu/mysql/mm9/phastCons30way.MYI /home/mysql/mm9/
rsync -avzP  rsync://hgdownload.cse.ucsc.edu/mysql/mm9/phastCons30wayPlacental.frm /home/mysql/mm9/
rsync -avzP  rsync://hgdownload.cse.ucsc.edu/mysql/mm9/phastCons30wayPlacental.MYD /home/mysql/mm9/
rsync -avzP  rsync://hgdownload.cse.ucsc.edu/mysql/mm9/phastCons30wayPlacental.MYI /home/mysql/mm9/
rsync -avzP  rsync://hgdownload.cse.ucsc.edu/mysql/mm9/phastConsElements30wayEuarch.frm /home/mysql/mm9/
rsync -avzP  rsync://hgdownload.cse.ucsc.edu/mysql/mm9/phastConsElements30wayEuarch.MYD /home/mysql/mm9/
rsync -avzP  rsync://hgdownload.cse.ucsc.edu/mysql/mm9/phastConsElements30wayEuarch.MYI /home/mysql/mm9/
rsync -avzP  rsync://hgdownload.cse.ucsc.edu/mysql/mm9/phastConsElements30way.frm /home/mysql/mm9/
rsync -avzP  rsync://hgdownload.cse.ucsc.edu/mysql/mm9/phastConsElements30way.MYD /home/mysql/mm9/
rsync -avzP  rsync://hgdownload.cse.ucsc.edu/mysql/mm9/phastConsElements30way.MYI /home/mysql/mm9/
rsync -avzP  rsync://hgdownload.cse.ucsc.edu/mysql/mm9/phastConsElements30wayPlacental.frm /home/mysql/mm9/
rsync -avzP  rsync://hgdownload.cse.ucsc.edu/mysql/mm9/phastConsElements30wayPlacental.MYD /home/mysql/mm9/
rsync -avzP  rsync://hgdownload.cse.ucsc.edu/mysql/mm9/phastConsElements30wayPlacental.MYI /home/mysql/mm9/
rsync -avzP  rsync://hgdownload.cse.ucsc.edu/mysql/mm9/refFlat.frm /home/mysql/mm9/
rsync -avzP  rsync://hgdownload.cse.ucsc.edu/mysql/mm9/refFlat.MYD /home/mysql/mm9/
rsync -avzP  rsync://hgdownload.cse.ucsc.edu/mysql/mm9/refFlat.MYD.1 /home/mysql/mm9/
rsync -avzP  rsync://hgdownload.cse.ucsc.edu/mysql/mm9/refFlat.MYI /home/mysql/mm9/
rsync -avzP  rsync://hgdownload.cse.ucsc.edu/mysql/mm9/refGene.frm /home/mysql/mm9/
rsync -avzP  rsync://hgdownload.cse.ucsc.edu/mysql/mm9/refGene.MYD /home/mysql/mm9/
rsync -avzP  rsync://hgdownload.cse.ucsc.edu/mysql/mm9/refGene.MYI /home/mysql/mm9/
rsync -avzP  rsync://hgdownload.cse.ucsc.edu/mysql/mm9/refLink.frm /home/mysql/mm9/
rsync -avzP  rsync://hgdownload.cse.ucsc.edu/mysql/mm9/refLink.MYD /home/mysql/mm9/
rsync -avzP  rsync://hgdownload.cse.ucsc.edu/mysql/mm9/refLink.MYI /home/mysql/mm9/
rsync -avzP  rsync://hgdownload.cse.ucsc.edu/mysql/mm9/refSeqAli.frm /home/mysql/mm9/
rsync -avzP  rsync://hgdownload.cse.ucsc.edu/mysql/mm9/refSeqAli.MYD /home/mysql/mm9/
rsync -avzP  rsync://hgdownload.cse.ucsc.edu/mysql/mm9/refSeqAli.MYI /home/mysql/mm9/
rsync -avzP  rsync://hgdownload.cse.ucsc.edu/mysql/mm9/refSeqStatus.frm /home/mysql/mm9/
rsync -avzP  rsync://hgdownload.cse.ucsc.edu/mysql/mm9/refSeqStatus.MYD /home/mysql/mm9/
rsync -avzP  rsync://hgdownload.cse.ucsc.edu/mysql/mm9/refSeqStatus.MYI /home/mysql/mm9/
rsync -avzP  rsync://hgdownload.cse.ucsc.edu/mysql/mm9/refSeqSummary.frm /home/mysql/mm9/
rsync -avzP  rsync://hgdownload.cse.ucsc.edu/mysql/mm9/refSeqSummary.MYD /home/mysql/mm9/
rsync -avzP  rsync://hgdownload.cse.ucsc.edu/mysql/mm9/refSeqSummary.MYI /home/mysql/mm9/
rsync -avzP  rsync://hgdownload.cse.ucsc.edu/mysql/mm9/scopDesc.frm /home/mysql/mm9/
rsync -avzP  rsync://hgdownload.cse.ucsc.edu/mysql/mm9/scopDesc.MYD /home/mysql/mm9/
rsync -avzP  rsync://hgdownload.cse.ucsc.edu/mysql/mm9/scopDesc.MYI /home/mysql/mm9/
rsync -avzP  rsync://hgdownload.cse.ucsc.edu/mysql/mm9/simpleRepeat.frm /home/mysql/mm9/
rsync -avzP  rsync://hgdownload.cse.ucsc.edu/mysql/mm9/simpleRepeat.MYD /home/mysql/mm9/
rsync -avzP  rsync://hgdownload.cse.ucsc.edu/mysql/mm9/simpleRepeat.MYI /home/mysql/mm9/
rsync -avzP  rsync://hgdownload.cse.ucsc.edu/mysql/mm9/tableDescriptions.frm /home/mysql/mm9/
rsync -avzP  rsync://hgdownload.cse.ucsc.edu/mysql/mm9/tableDescriptions.MYD /home/mysql/mm9/
rsync -avzP  rsync://hgdownload.cse.ucsc.edu/mysql/mm9/tableDescriptions.MYI /home/mysql/mm9/
rsync -avzP  rsync://hgdownload.cse.ucsc.edu/mysql/mm9/trackDb.frm /home/mysql/mm9/
rsync -avzP  rsync://hgdownload.cse.ucsc.edu/mysql/mm9/trackDb.MYD /home/mysql/mm9/
rsync -avzP  rsync://hgdownload.cse.ucsc.edu/mysql/mm9/trackDb.MYI /home/mysql/mm9/
rsync -avzP  rsync://hgdownload.cse.ucsc.edu/mysql/mm9/ucscScop.frm /home/mysql/mm9/
rsync -avzP  rsync://hgdownload.cse.ucsc.edu/mysql/mm9/ucscScop.MYD /home/mysql/mm9/
rsync -avzP  rsync://hgdownload.cse.ucsc.edu/mysql/mm9/ucscScop.MYI /home/mysql/mm9/
rsync -avzP  rsync://hgdownload.cse.ucsc.edu/mysql/mm9/organism* /home/mysql/mm9/
rsync -avzP  rsync://hgdownload.cse.ucsc.edu/mysql/mm9/chr*_rmsk.frm /home/mysql/mm9/
rsync -avzP  rsync://hgdownload.cse.ucsc.edu/mysql/mm9/chr*_rmsk.MYD /home/mysql/mm9/
rsync -avzP  rsync://hgdownload.cse.ucsc.edu/mysql/mm9/chr*_rmsk.MYI /home/mysql/mm9/

2. 定时清理

#!/bin/bash
#10080 means 10080 minutes which is 14 days.
find /var/www/gw/trash/ \! \( -regex "/var/www/gw/trash/ct/.*" -or \
	-regex "/var/www/gw/trash/hgSs/.*" \) -type f -amin +10080 -exec rm -f {} \;

3. 其它基因组浏览器


UCSC输出eps或pdf

  1. To print or save the image to a file:
    • In the blue navigation bar at the top of the screen, from the View menu, click the PDF/PS link.
  2. One can get to the page where you can export .eps files by altering your URL.
CHENTONG
版权声明:本文为博主原创文章,转载请注明出处。
alipay.png WeChatPay.png

CHENTONG

CHENTONG
积微,月不胜日,时不胜月,岁不胜时。凡人好敖慢小事,大事至,然后兴之务之。如是,则常不胜夫敦比于小事者矣!何也?小事之至也数,其悬日也博,其为积也大。大事之至也希,其悬日也浅,其为积也小。故善日者王,善时者霸,补漏者危,大荒者亡!故,王者敬日,霸者敬时,仅存之国危而后戚之。亡国至亡而后知亡,至死而后知死,亡国之祸败,不可胜悔也。霸者之善著也,可以时托也。王者之功名,不可胜日志也。财物货宝以大为重,政教功名者反是,能积微者速成。诗曰:德如毛,民鲜能克举之。此之谓也。

生信宝典文章集锦

生信的作用越来越大,想学的人越来越多,不管是为了以后发展,还是为了解决眼下的问题。但生信学习不是一朝一夕就可以完成的事情,也许你可以很短时间学会一个交互式软件的操作,却不能看完程序教学视频后就直接写程序。也许你可以跟着一个测序分析流程完成操作,但不懂得背后的原理,不知道什么...… Continue reading

生信宝典文章集锦

Published on January 01, 2100

生信宝典文章集锦

Published on January 01, 2100