src/utils/qa/qaEncodeTracks.csh 1.10
1.10 2010/03/16 20:59:00 ann
now that we have encode tables on more than hg18, and in more than one kind of trackDb.ra file, I am switching this script to use tdbQuery.
Index: src/utils/qa/qaEncodeTracks.csh
===================================================================
RCS file: /projects/compbio/cvsroot/kent/src/utils/qa/qaEncodeTracks.csh,v
retrieving revision 1.9
retrieving revision 1.10
diff -b -B -U 4 -r1.9 -r1.10
--- src/utils/qa/qaEncodeTracks.csh 15 Mar 2010 22:56:54 -0000 1.9
+++ src/utils/qa/qaEncodeTracks.csh 16 Mar 2010 20:59:00 -0000 1.10
@@ -107,11 +107,10 @@
echo "*** MAX length of shortLabel should be 16 ***"
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=`cat ~/trackDb/human/$db/trackDb.wgEncode.ra | grep -A10 "track $table" \
- | grep -m 1 shortLabel \
- | sed -e 's/shortLabel //' | sed -e 's/^ *//' | sed -e 's/.$//' | wc -m`
+ set num=`tdbQuery "select shortLabel from $db where track = '$table'" \
+ | sed -e 's/shortLabel //' | wc -c`
if ( $maxShortLabel < $num || 0 == $num ) then
if ( 0 == $num ) then
echo "ERROR: can't find a shortLabel for $table"
else
@@ -125,11 +124,10 @@
echo "*** MAX length of longLabel should be 80 ***"
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=`cat ~/trackDb/human/$db/trackDb.wgEncode.ra | grep -A10 "track $table" \
- | grep -m 1 longLabel \
- | sed -e 's/longLabel //' | sed -e 's/^ *//' | sed -e 's/.$//' | wc -m`
+ set num=`tdbQuery "select longLabel from $db where track = '$table'" \
+ | sed -e 's/longLabel //' | wc -c`
if ( $maxLongLabel < $num || 0 == $num ) then
if ( 0 == $num ) then
echo "ERROR: can't find a longLabel for $table"
else