Patricia Chan gave a lecture on setting up the UCSC Genome Browser. genomebrowsersetup.pdf
Written in C and JavaScript (JQuery)
To install or mirror a genome browser on a new server: http://genomewiki.ucsc.edu/index.php/Browser_Installation
/gbdb/<DB name>
centraldb
centraldb.dbDb
stores the informationcentraldb.blatservers
stores the info for two blat servers (one of DNA, one for protein sequences).hg.conf
Track Info
trackDb
table in each genome's MySQL database.trackDb.ra
files as input source.trackDb.ra
contains tracks that apply to multiple genomes.Kent Code Base
make utils
in ~/kent/src
~/bin/${MACHTYPE}
Browser Configuration File
.hg.conf
centraldb
info, trackDb
info./gbdb/newGenome
directory for a new genome assemblyfaToTwoBit chr1.fa [chr2.fa …] /gbdb/newGenome/newGenome.2bit
hgsql “” -e “create database if not exists newGenome”
hgsql
is a wrapper for passing SQL commands. The first argument is the database name.cd ~/kent/src/hg/lib
hgsql newGenome < grp.sql
faSize -detailed chr1.fa [chr2.fa …] > chrominfo.tab
hgsql newGenome < ~/kent/src/hg/lib/ chromInfo.sql
hgsql newGenome -e 'load data local infile “chrominfo.tab” into table chromInfo;“
hgsql newGenome -e 'update chromInfo set fileName = ”/gbdb/newGenome/newGenome.2bit“
centraldb.dbDb
tablecentraldb.defaultDb
tablecentraldb.genomeClade
tablecentraldb.clade
table./gbdb/newGenome/html/description.html
)~/kent/src/hg/makeDb/trackDb
~/kent/src/hg/makeDb/trackDb/<DB name>
hgFindSpec
table is required for specifying search criteria.trackDb.ra
.centraldb.blatServers
table.rsync -v /gbdb/newGenome/newGenome.2bit blat_host:/gbdb/newGenome
make-browser
.