src/utils/qa/countPerChrom.csh 1.9

1.9 2009/05/22 21:58:32 kuhn
removed need/ability to specify beta as second machine. thanks pauline
Index: src/utils/qa/countPerChrom.csh
===================================================================
RCS file: /projects/compbio/cvsroot/kent/src/utils/qa/countPerChrom.csh,v
retrieving revision 1.8
retrieving revision 1.9
diff -b -B -U 4 -r1.8 -r1.9
--- src/utils/qa/countPerChrom.csh	12 May 2009 17:10:12 -0000	1.8
+++ src/utils/qa/countPerChrom.csh	22 May 2009 21:58:32 -0000	1.9
@@ -34,14 +34,13 @@
   echo
   echo "  check to see if there are annotations on all chroms."
   echo "    will check to see if chrom field is named tName or genoName."
   echo
-  echo "    usage:  database table [oldDb] [hgwbeta | hgsqlbeta | RR]"
+  echo "    usage:  database1 table [database2] [RR]"
   echo
-  echo "      checks on dev"
-  echo "      oldDb will be checked on other machine if specified"
-  echo "        otherwise checked on hgsqlbeta"
-  echo "      RR will use genome-mysql"
+  echo "      checks database1 on dev"
+  echo "      database2 will be checked on beta by default"
+  echo "        RR will use genome-mysql if specified"
   echo
   exit
 else
   set db=$argv[1]
@@ -50,26 +49,23 @@
 
 if ( $#argv == 3 ) then
   if ( $argv[3] == "RR" ) then
     set host2="mysql -h genome-mysql -u genome -A"
-  else
-    set host2="hgsql -h hgsqlbeta"
-  endif
-  if ( $argv[3] == "hgwbeta"|| $argv[3] == "hgsqlbeta" || $argv[3] == "RR") then
     set oldDb=$db
     set machineOut="(${argv[3]})"
   else
     # argv[3] must be a db
     set oldDb=$argv[3] 
+    set host2="hgsql -h $sqlbeta"
     set machineOut="(hgwbeta)"
   endif
 endif
 
 if ( $#argv == 4 ) then
   set oldDb=$argv[3]
   set machineOut="(${argv[4]})"
-  if ( $argv[4] == "hgwbeta"|| $argv[4] == "hgsqlbeta" ) then
-    set host2="hgsql -h hgsqlbeta"
+  if ( $argv[4] == "hgwbeta" ) then
+    set host2="hgsql -h $sqlbeta"
   endif
   if ( $argv[4] == "RR" ) then
     set host2="mysql -h genome-mysql -u genome -A"
   endif
@@ -83,9 +79,9 @@
 
 set chroms=`hgsql -N -e "SELECT chrom FROM chromInfo" $db`
 set split=`getSplit.csh $db $table`
 if ( $status ) then
-  echo "\n  maybe the database is not present?\n"
+  echo "\n  the database or table may not exist\n"
   exit
 endif
 
 if ( $split == "unsplit" ) then