src/utils/qa/getLiftOver.csh 1.5
1.5 2009/04/11 00:37:03 rhead
Sourced new qaConfig file at the top. Changed -h hgwbeta lines to look for sql host stored in a variable, specified in the new qaConfig file.
Index: src/utils/qa/getLiftOver.csh
===================================================================
RCS file: /projects/compbio/cvsroot/kent/src/utils/qa/getLiftOver.csh,v
retrieving revision 1.4
retrieving revision 1.5
diff -b -B -U 1000000 -r1.4 -r1.5
--- src/utils/qa/getLiftOver.csh 24 Mar 2009 19:10:44 -0000 1.4
+++ src/utils/qa/getLiftOver.csh 11 Apr 2009 00:37:03 -0000 1.5
@@ -1,56 +1,57 @@
#!/bin/tcsh
+source `which qaConfig.csh`
#######################
#
# 9-18-2008
#
# get the assemblies to/from which a particular assembly has liftOver files.
#
# Ann Zweig
#
#######################
set machine="hgw1"
set db=""
set central="hgcentral"
set host="-h genome-centdb"
if ( "$HOST" != "hgwdev" ) then
echo "\n error: you must run this script on dev!\n"
exit 1
endif
if ($#argv < 1 || $#argv > 2 ) then
echo
echo " get the assemblies to/from which a particular db has liftOver files."
echo
echo " usage: db [hgwdev|hgwbeta]"
echo " defaults to RR machines"
echo
exit
endif
# assign command line arguments
set db=$argv[1]
if ($#argv == 2 ) then
set machine=$argv[2]
endif
if ($machine == 'hgwbeta') then
set central='hgcentralbeta'
- set host='-h hgwbeta'
+ set host='-h $sqlbeta'
endif
if ($machine == 'hgwdev') then
set central='hgcentraltest'
set host='-h hgwdev'
endif
echo "\nliftOver chains TO $db on $machine --\n"
hgsql $host -Ne "SELECT fromDb FROM liftOverChain WHERE toDb = '$db' \
ORDER BY fromDb" $central
echo "\nliftOver chains FROM $db on $machine --\n"
hgsql $host -Ne "SELECT toDb FROM liftOverChain WHERE fromDb = '$db' \
ORDER BY toDb" $central