src/utils/qa/chainNetTrio.csh 1.10

1.10 2009/07/31 18:50:35 kuhn
added a little prtective logic for when the otherOrg does not have an assembly (chromInfo)
Index: src/utils/qa/chainNetTrio.csh
===================================================================
RCS file: /projects/compbio/cvsroot/kent/src/utils/qa/chainNetTrio.csh,v
retrieving revision 1.9
retrieving revision 1.10
diff -b -B -U 1000000 -r1.9 -r1.10
--- src/utils/qa/chainNetTrio.csh	1 Jul 2009 23:30:16 -0000	1.9
+++ src/utils/qa/chainNetTrio.csh	31 Jul 2009 18:50:35 -0000	1.10
@@ -1,45 +1,49 @@
 #!/bin/tcsh
 source `which qaConfig.csh`
 
 # This script runs the chain.csh, chain2.csh, and net.csh
 # scripts in sucession.
 
 # enter the name of the database and the name of the chains/nets.
 
 if ($#argv < 1 || $#argv > 2) then
   echo
   echo " runs the three chain and net scripts in succession"
   echo " works for both split and unsplit chain tables"
   echo
   echo "    usage:  database Tablename"
   echo
   echo "    database is the 'from' database  "
   echo "    Tablename is the name of the chain tables (need not be capitalized)"
   echo "    e.g. chainNetTrio.csh mm8 Hg18"
   echo
   exit
 else
   set db=$argv[1]
   set table=$argv[2]
 endif
 
 # capitalize the first letter of the "other" chain table:
 # just in case
 set table=`echo $table | perl -wpe '$_ = ucfirst($_)'`
 
 set split=`getSplit.csh $db chain$table hgwdev`
+if ( $status ) then
+  echo "\n\n $split \n"
+  exit 1
+endif
 
 if ( $split == "unsplit" ) then
   # run the three scripts in order
   nice chain.csh  $db chain$table      >& $db.chain.$table
   nice chain2.csh $db chain$table      >& $db.chain2.$table
   nice net.csh    $db net$table        >& $db.net.$table
 else
   # run the three scripts in order
   nice chain.csh  $db chrN_chain$table >& $db.chain.$table
   nice chain2.csh $db chrN_chain$table >& $db.chain2.$table
   nice net.csh    $db net$table        >& $db.net.$table
 endif