790b166f17ba0ef2f8cfe220dbc6c2a67035ede9 hiram Wed Mar 15 21:16:40 2023 -0700 adding HPRC links to the index pages refs #30508 diff --git src/hg/makeDb/doc/asmHubs/commonHtml.pm src/hg/makeDb/doc/asmHubs/commonHtml.pm index 6be84f6..2f3e2fe 100644 --- src/hg/makeDb/doc/asmHubs/commonHtml.pm +++ src/hg/makeDb/doc/asmHubs/commonHtml.pm @@ -1,122 +1,132 @@ package commonHtml; # helper functions for common HTML output features use warnings; use strict; use Carp; use vars qw(@ISA @EXPORT_OK); use Exporter; @ISA = qw(Exporter); # This is a listing of the public methods and variables (which should be # treated as constants) exported by this module: @EXPORT_OK = ( qw( otherHubLinks htmlFooter ) ); # otherHubLinks: arg one: vgpIndex, arg two: asmHubName, arg three: orderList # arguments allow decision on customization of the table for different # types of assembly hubs sub otherHubLinks($$) { my ($vgpIndex, $asmHubName) = @_; my %asmCounts; # key is hubName, value is number of assemblies -my @hubList = qw(primates mammals birds fish vertebrate invertebrate plants fungi viral); +my @hubList = qw(primates mammals birds fish vertebrate invertebrate plants fungi viral bacteria); foreach my $hubName (@hubList) { my $asmCount = `grep -v "^#" ../${hubName}AsmHub/${hubName}.orderList.tsv | wc -l`; chomp $asmCount; $asmCounts{$hubName} = $asmCount; } my $vgpCount = `grep -h -v "^#" ../vgpAsmHub/vgp.*.orderList.tsv | wc -l`; chomp $vgpCount; $asmCounts{'vgp'} = $vgpCount; -my $legacyCount = `grep -h -v "^#" ../legacyAsmHub/legacy.orderList.tsv | wc -l`; +my $hprcCount = `grep -c -h -v "^#" ../hprcAsmHub/hprc.orderList.tsv`; +chomp $hprcCount; +$asmCounts{'hprc'} = $hprcCount; +my $legacyCount = `grep -c -h -v "^#" ../legacyAsmHub/legacy.orderList.tsv`; chomp $legacyCount; $asmCounts{'legacy'} = $legacyCount; # different table output for VGP index if ((0 == $vgpIndex)) { printf "

\n\n"; printf "\n"; printf "\n"; printf " \n"; printf " \n"; printf " \n"; printf "\n"; foreach my $hubName (@hubList) { if ($hubName =~ m/^vertebrate/) { printf "\n"; } elsif ($hubName =~ m/fish/) { printf "\n"; } elsif ($hubName =~ m/invertebrate/) { printf "\n"; } elsif ($hubName =~ m/viral/) { printf "\n"; + } elsif ($hubName =~ m/bacteria/) { + printf "\n"; } else { printf "\n", ucfirst($hubName); } printf " \n", $hubName, $asmCounts{$hubName}; printf " \n", $hubName; printf " \n", $hubName; printf "\n"; } printf "\n"; printf " \n", "VGP", $asmCounts{'vgp'}; printf " \n"; printf " \n"; printf "\n"; + printf "\n"; + printf " \n", "HPRC", $asmCounts{'hprc'}; + printf " \n"; + printf " \n"; + printf "\n"; printf "\n"; printf " \n", "legacy", $asmCounts{'legacy'}; printf " \n"; printf " \n"; printf "\n
Additional hubs with collections of assemblies
CollectionHub index pages:Assembly statistics:Track statistics:
other vertebrates
Fishes
Invertebrates
Viruses
Bacteria
%s%d assembliesassembly statstrack stats
VGP - Vertebrate Genome Project%d assembliesassembly statstrack stats
HPRC - Human Pangenome Reference Consortium%d assembliesassembly statstrack stats
legacy/superseded%d assembliesassembly statstrack stats
\n

\n"; } elsif (1 == $vgpIndex) { printf "

\n\n"; printf "\n"; printf "\n"; printf "\n"; printf "\n"; printf "\n"; printf "\n"; printf "\n"; printf "\n"; printf "\n"; printf "\n"; printf "\n"; printf "\n"; printf "\n"; printf "\n"; printf "\n"; printf "\n"; printf "\n"; printf "\n"; printf "\n"; printf "\n"; printf "\n"; printf "\n"; printf "\n
Alternate sets of VGP assembliesNCBI Refseq
Index pages: primary assemblyalternate/haplotypetrio mat/patlegacy/supersededother NCBI Refseq assemblies
Assembly statistics: primary assemblyalternate/haplotypetrio mat/patlegacy/supersededother NCBI Refseq assemblies
Track statistics: primary assemblyalternate/haplotypetrio mat/patlegacy/supersededother NCBI Refseq assemblies
\n

\n"; } } # sub otherHubLinks($$) ############################################################################ # common output at the bottom of an html index page sub htmlFooter() { print <<"END" END } ############################################################################