src/utils/qa/makeUniProtFile.csh 1.6

1.6 2009/06/02 16:06:26 ann
two small tweaks based on code review with Bob
Index: src/utils/qa/makeUniProtFile.csh
===================================================================
RCS file: /projects/compbio/cvsroot/kent/src/utils/qa/makeUniProtFile.csh,v
retrieving revision 1.5
retrieving revision 1.6
diff -b -B -U 4 -r1.5 -r1.6
--- src/utils/qa/makeUniProtFile.csh	20 May 2009 18:49:29 -0000	1.5
+++ src/utils/qa/makeUniProtFile.csh	2 Jun 2009 16:06:26 -0000	1.6
@@ -81,9 +81,9 @@
  set org=`hgsql -Ne 'SELECT organism FROM dbDb where name = "'$db'" LIMIT 1' \
   hgcentraltest | perl -wpe '$_ = lcfirst($_)'`
 
  # now add the organism name to every row
- sed -e 's/$/ '"$org"'/g' $db.rawDataForUniProt > $db.rawDataForUniProt.plus
+ sed -e 's/$/ '$org'/' $db.rawDataForUniProt > $db.rawDataForUniProt.plus
 
 else
   echo " \nERROR: It is not possible to make a mapping file for UniProt from"
   echo " the database you entered: $db\n"
@@ -97,9 +97,9 @@
 mkdir -p /usr/local/apache/htdocs/goldenPath/$db/UCSCGenes
 cp $db.uniProtToUcscGenes.txt /usr/local/apache/htdocs/goldenPath/$db/UCSCGenes/uniProtToUcscGenes.txt
 
 # how big is the file
-set num=`wc -l $db.uniProtToUcscGenes.txt`
+set num=`wc -l $db.uniProtToUcscGenes.txt | awk '{print $1}'`
 
 # explain the output to the user
 echo "\nSUCCESS!\n"
 echo "Here's a sample of the $num line file you just created"