findDbPartners.csh db
Remember to turn off Genbank updates first if pushing in the afternoon. Updates start ~4:30 p.m.
[rhead@hgarchive1 /]$ mysql --user=hgcat --password -AThe hgcat password should be in your .hg.conf file (in your home directory). The path to the mysql tables in the filesystem is hgarchive1:/var/lib/mysql/ .
On hgwbeta: hgsqldump --all -d -c hgcentralbeta blatServers sessionDb userDb > hgcentral.sql hgsqldump --all -c hgcentralbeta clade dbDb dbDbArch defaultDb gdbPdb genomeClade liftOverChain >> hgcentral.sql(if using hgcentral, add '-h genome-centdb' after the '-c' above)
hgcentral setupRefer to the table for a summary of the various combinations from the archiving project of 2008-08-25.
|
||
Case 1 |
Case 2 |
Case 3 |
No connections of any kind left to the database from remaining dbs
on RR. E.g., ce1, rn2.
See details for discussion and MySQL commands. |
Only liftOver connections remain to the database from remaining dbs
on RR. E.g., hg15, bosTau1.
See details for discussion and MySQL commands. |
Connections remain to the database from remaining dbs on RR,
including net/chains, multiz, otherOrgs in hgGene, Human (or Fly
or Worm) Proteins. E.g., mm5, mm6, danRer2.
See details for discussion and MySQL commands. |
sample push-request:
pushers: a four-part request: 1. could you please create the following directories on hgarchive1: /usr/local/apache/cgi-bin-2008-08 /usr/local/apache/cgi-bin-mm5 /usr/local/apache/cgi-bin-mm6 and push the 32-bit cgis from titan:/scratch/releaseBuild/cgi-bin-32 to cgi-bin-2008? Then make hardlinks in the other two directories so all the files EXCEPT hg.conf are the same file. please push these cgis only: cartDump cartReset das hgConvert hgCustom hgGateway hgGene hgGenome hgLiftOver hgNear hgPcr hgSession hgTables hgTrackUi hgTracks hgVisiGene hgc pbGateway pbGlobal pbTracks phyloGif and 2. also push this directory and make the hardlinks: titan:/scratch/releaseBuild/cgi-bin-32/loader/* to: /usr/local/apache/cgi-bin-2008-08 3. and these configuration files to the same place and make the hardlinks: /usr/local/apache/cgi-bin/all.joiner /usr/local/apache/cgi-bin/galaAvail.tab /usr/local/apache/cgi-bin/hgNearData/* /usr/local/apache/cgi-bin/hgGeneData/* /usr/local/apache/cgi-bin/hgcData/* /usr/local/apache/cgi-bin/hgCgiData/* /usr/local/apache/cgi-bin/visiGeneData/* /usr/local/apache/htdocs/js/* from hgwbeta 4. also, please grab the hg.conf from the cgi-bin-hg15 directory on hgarchive1 and copy it to the two new dirs. This should be a real file in each place NOT HARDLINKS. /usr/local/apache/cgi-bin-hg15/hg.conf to /usr/local/apache/cgi-bin-mm5 /usr/local/apache/cgi-bin-mm6 reason: archiving
central.db=hgcentarchRn1If this file does not exist for the newly archived assembly, it can be copied from one of the other assemblies on hgarchive1 and edited.
central.host=localhost
Just fixed it. It appears there were some allow/deny directives specific to the 'htdocs' directory that had to be explicitly mentioned for the 'htdocs-2008-08' directory as well for includes to be honored.
Note that there will be one index file for all assemblies, so the file, htdocs/index.html, should be updated to reflect all archived assemblies. Then set up symlink in the new htdocs-YYYY-MM dir to point to it:
htdocs-YYYY-MM>ln -s ../htdocs/index.html index.html
[rhead@hgwdev ~]$ getAssemblies.csh blastHg% [rhead@hgwdev ~]$ getAssemblies.csh blastDm%or see the output from findDbPartners.csh. The 'blastHg%' table references the human 'blastKGRef%' and 'blastKGPep%' tables. The 'blastFb%' table references the fly 'blastFBRef%' and 'blastFBPep%' tables. If needed, these should be pushed from their databases to hgarchive1.
hgarchive1:>mysql -A --user=hgcat db SHOW TABLES LIKE "net%";
Note from Mark: An error will occur any time the browser needs to access the FASTA files for the genbank mRNAs, ESTs, or RefSeq genes. This happens with:
Turning off "Color track by bases" by default should keep the hgTracks display functioning. To do this, change the setting field in trackDb to use "baseColorDefault none".
[rhead@hgwdev ~]$ getDbSize.csh danRer1 index db Gbytes index ======= ====== ===== danRer1 4.6 2.1Alternatively, use dbSnoop:
hgwbeta> cd /tmp hgwbeta> dbSnoop -unsplit $db $db.dbSnoop hgwbeta> head $db.dbSnoop
[rhead@hgwdev danRer1]$ cd /usr/local/apache/htdocs/goldenPath/ [rhead@hgwdev goldenPath]$ ls */vsDanRer1or:
getAssemblies.csh netDb(also included in output of findDbParterns.csh if you ran it above).
DELETE FROM blatServers where db = 'rheMac1'; UPDATE dbDb SET active = 0 WHERE name = 'rheMac1';
rm -f dbDbArch.rows foreach db (hg15 mm5 mm6 ce1 bosTau1 danRer2 rn2) hgsql -N -e "SELECT * FROM dbDb WHERE name = '$db'" hgcentraltest >> dbDbArch.rows endload into hgcentralbeta
hgsql -h hgwbeta -e "LOAD DATA LOCAL INFILE 'dbDbArch.rows' INTO TABLE dbDbArch" hgcentralbeta
mysql> drop database rheMac1;Be very careful with this command!
If any assemblies are being stripped down to chromInfo only, have the admins set up the rsync so it no longer removes missing tables from the annotation link. Do this before dropping the dbs from the RR.