2e7b2a2a3e3bb68a9549c53f4dcbcd4a19f54761 max Fri Dec 1 06:42:45 2023 -0800 adding case that user has already downloaded non-assembly databases, bugfix for refs #32693 diff --git src/product/installer/browserSetup.sh src/product/installer/browserSetup.sh index 0269374..791a3df 100644 --- src/product/installer/browserSetup.sh +++ src/product/installer/browserSetup.sh @@ -1717,30 +1717,33 @@ mysqlcheck --all-databases --auto-repair --quick --fast --silent } function hideSomeTracks # hide the big tracks and the ones that we are not allowed to distribute { # these tables are not used for searches by default. Searches are very slow. We focus on genes. notSearchTables='wgEncodeGencodeBasicV19 wgEncodeGencodeCompV17 wgEncodeGencodeBasicV14 wgEncodeGencodeBasicV17 wgEncode GencodeCompV14 mgcFullMrna wgEncodeGencodeBasicV7 orfeomeMrna wgEncodeGencodePseudoGeneV14 wgEncodeGencodePseudoGeneV17 wgEncodeGencodePseudoGeneV19 wgEncodeGencodeCompV7 knownGeneOld6 geneReviews transMapAlnSplicedEst gbCdnaInfo oreganno vegaPseudoGene transMapAlnMRna ucscGenePfam qPcrPrimers transMapAlnUcscGenes transMapAlnRefSeq genscan bacEndPairs fosEndPairs' # these tracks are hidden by default hideTracks='intronEst cons100way cons46way ucscRetroAli5 mrna omimGene2 omimAvSnp' echo2 Hiding some tracks by default and removing some tracks from searches for db in $DBS; do echo $db + if [ "$db" == "go" -o "$db" == "uniProt" -o "$db" == "visiGene" ] ; then + continue + fi for track in $hideTracks; do mysql $db -e 'UPDATE trackDb set visibility=0 WHERE tableName="'$track'"' done for track in $notSearchTables; do mysql $db -e 'DELETE from hgFindSpec WHERE searchTable="'$track'"' done done } # only download a set of minimal mysql tables, to make a genome browser that is using the mysql failover mechanism # faster. This should be fast enough in the US West Coast area and maybe even on the East Coast. function downloadMinimal { DBS=$*