a213081a5106754b3f3ec4899c7b54ce3b6352f1 hiram Wed Jul 29 16:01:33 2026 -0700 claude fixing claude errors refs #37958 diff --git src/hg/utils/automation/doAssemblyHub.pl src/hg/utils/automation/doAssemblyHub.pl index cf3d2d92e5a..24dd3043425 100755 --- src/hg/utils/automation/doAssemblyHub.pl +++ src/hg/utils/automation/doAssemblyHub.pl @@ -1806,37 +1806,43 @@ } my $runDir = "$buildDir/trackData/ncbiGene"; &HgAutomate::mustMkdir($runDir); my $whatItDoes = "run doNcbiGene.pl to construct the ncbiGene track"; my $bossScript = newBash HgRemoteScript("$runDir/doNcbiGene.bash", $workhorse, $runDir, $whatItDoes); my $liftSpec = ""; if ($ucscNames) { $liftSpec = "-liftFile=\"$buildDir/sequence/$asmId.ncbiToUcsc.lift\""; } $bossScript->add(<<_EOF_ +if [ $gffFile -nt $defaultName.ncbiGene.bb ]; then + ~/kent/src/hg/utils/automation/doNcbiGene.pl \\ -assemblySource=$assemblySource \\ -chromSizes="$buildDir/$defaultName.chrom.sizes" \\ -namesFile="$buildDir/html/$defaultName.names.tab" \\ $liftSpec -buildDir=`pwd` -dbHost=$dbHost \\ -workhorse=$workhorse -fileServer=$fileServer \\ $asmId $defaultName + +else + printf "# ncbiGene step previously completed\\n" 1>&2 +fi _EOF_ ); $bossScript->execute(); } # doNcbiGene ######################################################################### # * step: ncbiRefSeq [workhorse] sub doNcbiRefSeq { # skip this procedure if all the required files are not available my $gffFile = "$assemblySource/${asmId}_genomic.gff.gz"; if ( ! -s "${gffFile}" ) { printf STDERR "# step ncbiRefSeq no gff file found at:\n# %s\n", $gffFile; return; } my $filesFound = 0;