src/hg/makeDb/trackDb/loadTracks 1.16
1.16 2009/12/03 05:17:25 kent
Fixing some duplicates found by tdbQuery
Index: src/hg/makeDb/trackDb/loadTracks
===================================================================
RCS file: /projects/compbio/cvsroot/kent/src/hg/makeDb/trackDb/loadTracks,v
retrieving revision 1.15
retrieving revision 1.16
diff -b -B -U 4 -r1.15 -r1.16
--- src/hg/makeDb/trackDb/loadTracks 18 Nov 2009 18:07:23 -0000 1.15
+++ src/hg/makeDb/trackDb/loadTracks 3 Dec 2009 05:17:25 -0000 1.16
@@ -69,9 +69,9 @@
loadDbTracks() {
local db="$1"
local dbpath=$(ls -1 -d */$db)
local org=$(echo $dbpath | sed -e 's/\/.*//')
- local topts='' fopts=''
+ local topts='' fopts='' qopts=''
if [ -f $dbpath/visibility.ra ] ; then
topts="$topts -visibility=$dbpath/visibility.ra"
elif [ -f $org/visibility.ra ] ; then
topts="$topts -visibility=$org/visibility.ra"
@@ -86,8 +86,9 @@
fi
if [ -n "$strict" ] ; then
topts="$topts -strict"
fopts="$fopts -strict"
+ qopts="$qopts -strict"
fi
if [ -n "$settings" ] ; then
topts="$topts -settings"
fi
@@ -102,8 +103,13 @@
# don't use set -x, since the autoload scripts e-mail stderr.
local cmd="hgTrackDb $topts $org $db $trackDb ${sqlDir}/trackDb.sql ."
echo $cmd
eval $cmd
+
+ cmd="tdbQuery $qopts 'select count(*) from $db'"
+ echo $cmd
+ eval $cmd
+
cmd="hgFindSpec $fopts $org $db $hgFindSpec ${sqlDir}/hgFindSpec.sql ."
echo $cmd
eval $cmd
if [ -z "$strict" -a -f $dbpath/description.html ] ; then