ee32bb6814651383d9ad925fd6adbb43c255aa22 galt Tue Nov 9 16:03:44 2021 -0800 Fix buildTrix in makeDb/trackDb/ to use maxWordLength=64 so ixIxx which reports errors now is happy. diff --git src/hg/makeDb/trackDb/buildTrix src/hg/makeDb/trackDb/buildTrix index 94efcb7..79f5673 100755 --- src/hg/makeDb/trackDb/buildTrix +++ src/hg/makeDb/trackDb/buildTrix @@ -1,51 +1,51 @@ #!/bin/bash -e usage='buildTrix trixName metaDbName path_to_cv.ra outputMachine outputPath ${DBS}' if [ $# -lt 6 ] ; then echo "wrong # args: $usage" >&2 exit 1 fi trixName="$1"; shift metaDbName="$1" ; shift cvRaPath="$1" ; shift outMachine="$1" ; shift outPath="$1" ; shift dbs="$@" # check if a database exists, print note and return non-zero if it doesn't dbExists() { local db="$1" local dbChk=$(hgsql -Ne 'show databases like "'$db'"') if [ -z "$dbChk" ] ; then echo "Note: database $db does not exist, skipping" return 1 else return 0 fi } buildDbTrix() { local db="$1" local trixName="$2" local metaDbName="$3" local cvRaPath="$4" local outPath="$5" local tmpFile=`mktemp`; local tmpFile2=`mktemp`; local tmpFile3=`mktemp`; makeTrackIndex $db $metaDbName $cvRaPath > $tmpFile; if test -s $tmpFile; then - ixIxx $tmpFile $tmpFile2 $tmpFile3 + ixIxx -maxWordLength=64 $tmpFile $tmpFile2 $tmpFile3 chmod 664 $tmpFile2 $tmpFile3 rsync -a $tmpFile2 $outMachine:$outPath/${db}_${trixName}.ix rsync -a $tmpFile3 $outMachine:$outPath/${db}_${trixName}.ixx fi rm -f $tmpFile $tmpFile2 $tmpFile3 } for db in $dbs ; do if dbExists $db ; then buildDbTrix $db $trixName $metaDbName $cvRaPath $outPath fi done