f3f18ba1ffec58fc4a7811f60b394e0c3d83cbe9 hiram Sun Oct 16 20:09:17 2022 -0700 adjuste lower limits for valid hubs in different clades refs $29545 diff --git src/hg/makeDb/doc/asmHubs/verifyOnDownload.sh src/hg/makeDb/doc/asmHubs/verifyOnDownload.sh index 1a7b672..b0de966 100755 --- src/hg/makeDb/doc/asmHubs/verifyOnDownload.sh +++ src/hg/makeDb/doc/asmHubs/verifyOnDownload.sh @@ -11,35 +11,41 @@ fi # printf "usage: ./verifyOnDownload.sh \n" 1>&2 # ${toolsDir}/mkSendList.pl ${orderList} | while read F; do \ # ${toolsDir}/verifyOnDownload.sh $$F < /dev/null; done export host=$1 export orderList=$2 export successCount=0 export doneCount=0 export fileName=`basename $orderList` export subset=${fileName%.orderList.tsv} export minTrackCount=12 if [ "${subset}" == "invertebrate" ]; then - minTrackCount=10 + minTrackCount=9 elif [ "${subset}" == "bacteria" ]; then minTrackCount=9 +elif [ "${subset}" == "plants" ]; then + minTrackCount=11 +elif [ "${subset}" == "birds" ]; then + minTrackCount=11 elif [ "${subset}" == "mammals" ]; then minTrackCount=9 +elif [ "${subset}" == "archaea" ]; then + minTrackCount=9 elif [ "${subset}" == "viral" ]; then minTrackCount=7 fi # printf "# DBG subset '%s' min: %d\n" "${subset}" "${minTrackCount}" 1>&2 export dbHost="localhost" export hubSource="hgdownload-test.gi.ucsc.edu" if [ "${host}" = "apibeta.soe.ucsc.edu" ]; then hubSource="hgdownload.soe.ucsc.edu" fi export totalTrackCount=0 for dirPath in `~/kent/src/hg/makeDb/doc/asmHubs/mkSendList.pl "${orderList}"` @@ -72,16 +78,17 @@ | egrep -v '"'$db'":' | tr -d '"' \ | sed -e 's/^ \+//; s/ {//;' | xargs echo | wc -w` if [ "${trackCount}" -gt "${minTrackCount}" ]; then ((successCount=successCount+1)) printf "%03d\t%s\t%d tracks:\t" "${doneCount}" "${db}" "${trackCount}" else printf "%03d\t%s\t%d (error < %d) tracks:\t" "${doneCount}" "${db}" "${trackCount}" "${minTrackCount}" fi totalTrackCount=`echo $totalTrackCount $trackCount | awk '{print $1+$2}'` hgsql -N -e "select organism,description,\",\",scientificName from dbDb where name=\"$db\";" hgcentraltest | tr "'" '_' | xargs echo | sed -e 's/ ,/,/;' ;; esac done export failCount=`echo $doneCount $successCount | awk '{printf "%d", $1-$2}'` -printf "# checked %3d hubs, %3d success, %3d fail, total tracks: %d\n" "${doneCount}" "${successCount}" "${failCount}" "${totalTrackCount}" +export DS=`date "+%F %T"` +printf "# checked %3d hubs, %3d success, %3d fail, total tracks: %d, %s\n" "${doneCount}" "${successCount}" "${failCount}" "${totalTrackCount}" "${DS}"