68e60a3ccfe0c3aaa48f2fa85f86ca700d681e81 hiram Tue Mar 31 12:08:22 2020 -0700 correct hub.txt not testHub.txt refs #23891 diff --git src/hg/makeDb/doc/asmHubs/mkHubIndex.pl src/hg/makeDb/doc/asmHubs/mkHubIndex.pl index d21d570..9402773 100755 --- src/hg/makeDb/doc/asmHubs/mkHubIndex.pl +++ src/hg/makeDb/doc/asmHubs/mkHubIndex.pl @@ -1,286 +1,293 @@ #!/usr/bin/env perl use strict; use warnings; my $argc = scalar(@ARGV); if ($argc != 3) { printf STDERR "mkAsmStats Name asmName\n"; printf STDERR "e.g.: mkHubIndex Primates primates GCF_000001405.39_GRCh38.p13\n"; exit 255; } my $Name = shift; my $asmHubName = shift; my $defaultAssembly = shift; my $home = $ENV{'HOME'}; my $toolsDir = "$home/kent/src/hg/makeDb/doc/asmHubs"; my $commonNameOrder = "$asmHubName.commonName.asmId.orderList.tsv"; my @orderList; # asmId of the assemblies in order from the *.list files # the order to read the different .list files: my $assemblyCount = 0; my %betterName; # key is asmId, value is a common name better than found # in assembly_report file ############################################################################## # from Perl Cookbook Recipe 2.17, print out large numbers with comma delimiters: ############################################################################## sub commify($) { my $text = reverse $_[0]; $text =~ s/(\d\d\d)(?=\d)(?!\d*\.)/$1,/g; return scalar reverse $text } ############################################################################## ### start the HTML output ############################################################################## sub startHtml() { my $timeStamp = `date "+%F"`; chomp $timeStamp; # my $subSetMessage = "subset of $asmHubName only"; if ($asmHubName eq "vertebrate") { $subSetMessage = "subset of other ${asmHubName}s only"; } print <<"END"
Assemblies from NCBI/Genbank/Refseq sources, $subSetMessage.
-You can load this hub from our -Public Hubs -page or by clicking these assembly links to any of our official websites: +Options: +
-To manually attach all the assemblies in this hub to other genome browsers: +
https://hgdownload.soe.ucsc.edu/hubs/$asmHubName/hub.txtAfter adding the hub, you will be redirected to the gateway page. The genome assemblies can be selected from the ${Name} Hub Assembly dropdown menu. Instead of adding all the assemblies in one collected group, use the individual link to genome browser in the table below.
-
NOTE: Click on the column headers to sort the table by that column
-The link to genome browser will attach only that single assembly to
-the genome browser.
+The common name/link to genome browser will attach only that single assembly to
+the genome browser.
+The scientific name/and data download link provides access to the files for that one
+assembly hub.
+The other links provide access to NCBI resources for these assemblies.
+
| count | common name link to genome browser |
scientific name and data download |
NCBI assembly | bioSample | bioProject | assembly date, source link |
|---|
\n
| Assembly hubs index pages: | \n"; + printf "|||||||||||||||||||||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
| Additional hubs with collections of assemblies | ||||||||||
|---|---|---|---|---|---|---|---|---|---|---|
| Assembly hubs index pages: | \n"; printf "Primates | \n"; printf "Mammals | \n"; printf "Birds | \n"; printf "Fish | \n"; printf "other vertebrates | \n"; printf "|||||
| Hubs assembly statistics: | \n"; - printf "Primates | \n"; - printf "Mammals | \n"; - printf "Birds | \n"; - printf "Fish | \n"; - printf "other vertebrates | \n"; + printf "Primates | \n"; + printf "Mammals | \n"; + printf "Birds | \n"; + printf "Fish | \n"; + printf "other vertebrates | \n"; printf "
| Hubs track statistics: | \n"; printf "Primates | \n"; printf "Mammals | \n"; printf "Birds | \n"; printf "Fish | \n"; printf "other vertebrates | \n"; printf "|||||