src/utils/qa/qaEncodeTracks.csh 1.11
1.11 2010/03/19 18:58:14 ann
stripped white space and new line from tdbQuery output of shortLabel and longLabel
Index: src/utils/qa/qaEncodeTracks.csh
===================================================================
RCS file: /projects/compbio/cvsroot/kent/src/utils/qa/qaEncodeTracks.csh,v
retrieving revision 1.10
retrieving revision 1.11
diff -b -B -U 4 -r1.10 -r1.11
--- src/utils/qa/qaEncodeTracks.csh 16 Mar 2010 20:59:00 -0000 1.10
+++ src/utils/qa/qaEncodeTracks.csh 19 Mar 2010 18:58:14 -0000 1.11
@@ -108,9 +108,9 @@
echo "(Only prints if shortLabel is greater than 16 characters, or if"
echo "it can't find a shortLabel at all)"
foreach table ( $tables )
set num=`tdbQuery "select shortLabel from $db where track = '$table'" \
- | sed -e 's/shortLabel //' | wc -c`
+ | sed -e 's/shortLabel //' | sed -e '/^[ ]*$/d' | awk '{print length}'`
if ( $maxShortLabel < $num || 0 == $num ) then
if ( 0 == $num ) then
echo "ERROR: can't find a shortLabel for $table"
else
@@ -125,9 +125,9 @@
echo "(Only prints if longLabel is greater than 80 characters, or if"
echo "it can't find a longLabel at all)"
foreach table ( $tables )
set num=`tdbQuery "select longLabel from $db where track = '$table'" \
- | sed -e 's/longLabel //' | wc -c`
+ | sed -e 's/longLabel //' | sed -e '/^[ ]*$/d' | awk '{print length}'`
if ( $maxLongLabel < $num || 0 == $num ) then
if ( 0 == $num ) then
echo "ERROR: can't find a longLabel for $table"
else