636dc23e0f0b10bb1f1be27b7936ec15b9be2f49 hiram Wed Jul 29 21:53:06 2026 -0700 hub link to the archive without duplicating the tracks refs #37958 diff --git src/hg/utils/automation/AsmHub.pm src/hg/utils/automation/AsmHub.pm index 035f949ab61..9cab4a83f87 100755 --- src/hg/utils/automation/AsmHub.pm +++ src/hg/utils/automation/AsmHub.pm @@ -144,26 +144,26 @@ if ($dh) { @versions = sort { $b cmp $a } grep { -d "$archiveBase/$_" && $_ !~ m/^\./ } readdir($dh); closedir($dh); } } if (@versions) { my @parts = split('_', $ncbiAsmId); my $accession = "$parts[0]_$parts[1]"; my $hashedPath = asmIdToPath($ncbiAsmId); $html .= "<h2>Archived versions</h2>\n<p>\n"; $html .= "Earlier versions of this track, from before NCBI updated the source annotation, remain available as standalone track hubs:\n"; $html .= "</p>\n<ul>\n"; foreach my $version (@versions) { my $hubUrl = "https://hgdownload.soe.ucsc.edu/hubs/$hashedPath/$accession/archive/ncbiGene/$version/hub.txt"; - my $url = "/h/$accession?hubUrl=$hubUrl"; + my $url = "/cgi-bin/hgTracks?genome=$accession&hubUrl=$hubUrl"; $html .= "<li><a href='$url' target='_blank'>$version</a></li>\n"; } $html .= "</ul>\n\n"; } } return $html; } # ncbiGeneDescription 1;