b0b850bdc2557fed7f69594bc8fe013d478dbe85 hiram Wed Sep 28 10:19:12 2022 -0700 fixups for hs1 to database assemblies refs #29819 diff --git src/hg/utils/automation/doRecipBest.pl src/hg/utils/automation/doRecipBest.pl index 4126d3f..8ca354c 100755 --- src/hg/utils/automation/doRecipBest.pl +++ src/hg/utils/automation/doRecipBest.pl @@ -483,30 +483,36 @@ $dbExists = 0; $dbExists = 1 if (&HgAutomate::databaseExists($dbHost, $tDb)); # db might exist, but it may not have chromInfo table (promoted hub) $tChromInfoExists = 0; if ($dbExists) { $tChromInfoExists = 1 if (&HgAutomate::dbTableExists($dbHost, $tDb, "chromInfo")); } # may be working with a query that has no database $qDbExists = 0; $qDbExists = 1 if (&HgAutomate::databaseExists($dbHost, $qDb)); $qChromInfoExists = 0; if ($qDbExists) { $qChromInfoExists = 1 if (&HgAutomate::dbTableExists($dbHost, $qDb, "chromInfo")); } +printf STDERR "# target db exists: %s\n", $dbExists ? "TRUE" : "FALSE"; +printf STDERR "# target chromInfo exists: %s\n", $tChromInfoExists ? "TRUE" : "FALSE"; +printf STDERR "# query db exists: %s\n", $qDbExists ? "TRUE" : "FALSE"; +printf STDERR "# query chromInfo exists: %s\n", $qChromInfoExists ? "TRUE" : "FALSE"; +printf STDERR "# trackHub: %s\n", $opt_trackHub ? "TRUE" : "FALSE"; + $QDb = ucfirst($qDb); $target2Bit = "$HgAutomate::clusterData/$tDb/$tDb.2bit"; $query2Bit = "$HgAutomate::clusterData/$qDb/$qDb.2bit"; $target2Bit = $opt_target2Bit if ($opt_target2Bit); $query2Bit = $opt_query2Bit if ($opt_query2Bit); $targetSizes = "$HgAutomate::clusterData/$tDb/chrom.sizes"; $querySizes = "$HgAutomate::clusterData/$qDb/chrom.sizes"; $targetSizes = $opt_targetSizes if ($opt_targetSizes); $querySizes = $opt_querySizes if ($opt_querySizes); $splitRef = (`wc -l < $targetSizes` <= $HgAutomate::splitThreshold); # Establish what directory we will work in. if ($opt_buildDir) {