src/utils/qa/copyExtSeqRows.csh 1.6
1.6 2009/05/14 21:44:45 kuhn
a few cosmetic or typo changes
Index: src/utils/qa/copyExtSeqRows.csh
===================================================================
RCS file: /projects/compbio/cvsroot/kent/src/utils/qa/copyExtSeqRows.csh,v
retrieving revision 1.5
retrieving revision 1.6
diff -b -B -U 4 -r1.5 -r1.6
--- src/utils/qa/copyExtSeqRows.csh 11 Apr 2009 00:37:02 -0000 1.5
+++ src/utils/qa/copyExtSeqRows.csh 14 May 2009 21:44:45 -0000 1.6
@@ -94,9 +94,10 @@
else
set files=$filelist
endif
-# if this is a "real" run, we don't want to remove these files
+# in a setup run, there should be no XX...XX files yet, they will be made.
+# in a real run, they will be used.
if ( 'setup' == $run ) then
rm -f $listOfFiles
else
# but we do want to remove this file in a "real" run
@@ -127,17 +128,17 @@
foreach oneFile ( $files )
ls $oneFile | egrep 'maf$|fa$|fasta$' > /dev/null
if ( $status ) then
echo "\n ERROR: one or more of the file(s) in your list are not of the"
- echo " expected type. Typical file types in the extFile table end in .maf"
- echo " or .fa (or somtimes .fasta)\n"
+ echo " expected type. Typical file types in the extFile table end in "
+ echo " .maf or .fa (or somtimes .fasta)\n"
echo " Your bad file: $oneFile\n"
exit 1
endif
end
# check hgwbeta to see if the extFile row(s) exist there
- # if this is a data UPDATE, make file containing lists of what will be
+ # if this is a data UPDATE, make a file containing lists of what will be
# dropped from hgwbeta for users review.
# if the file is empty, then that means this must be NEW data.
foreach oneFile ( $files )
hgsql -h $sqlbeta -Ne "SELECT * FROM extFile WHERE path = '$oneFile'" $db \
@@ -363,10 +364,10 @@
# Make sure the extFile table on beta hasn't changed since 'setup' was run.
# If this is a Case II Update, we expect the table to have changed, so skip it.
if ( 2 != $case ) then
foreach oneFile ( $files )
- hgsql -h $sqlbeta -Ne 'SELECT * FROM extFile WHERE path = "'$oneFile'"' \
- $db >> XXextFileDropFromBetaRealXX
+ hgsql -h $sqlbeta -Ne 'SELECT * FROM extFile WHERE path = "'$oneFile'"' $db \
+ >> XXextFileDropFromBetaRealXX
end
set numDiffs=`diff XXextFileDropFromBetaXX XXextFileDropFromBetaRealXX \
| wc -l`
@@ -468,9 +469,9 @@
echo " script, you probably have a BIG MESS to clean up!\n"
endif
else
# new data
- echo "1. Becuase this is new data, this script did not drop anything from"
+ echo "1. Because this is new data, this script did not drop anything from"
echo " the extFile and seq tables on hgwbeta.\n"
endif
echo "2. This script loaded the appropriate set of rows into the extFile"
@@ -507,10 +508,10 @@
echo "5. Before any changes were made on hgwbeta, the extFile and seq tables"
echo " were backed up. If you are sure that everything went fine, you"
echo " should delete them (from hgwbeta):\n"
- echo " $db.seq$today;"
- echo " $db.extFile$today;\n"
+ echo " DROP TABLE $db.seq$today;"
+ echo " DROP TABLE $db.extFile$today;\n"
echo "6. Many files were created during the running of this script."
echo " When you're ready to do a cleanup, here's a list of what can be"
echo " deleted (it is OK if not all of the files exist):\n"