b99d9ad5adfa3176196acb5f4ace0c98f9742646
hiram
  Fri May 22 14:13:48 2020 -0700
eliminate other hub indexes for VGP page index refs #25555

diff --git src/hg/makeDb/doc/asmHubs/mkAsmStats.pl src/hg/makeDb/doc/asmHubs/mkAsmStats.pl
index eaafb3c..85afdfa 100755
--- src/hg/makeDb/doc/asmHubs/mkAsmStats.pl
+++ src/hg/makeDb/doc/asmHubs/mkAsmStats.pl
@@ -120,49 +120,64 @@
 ##############################################################################
 sub endTable() {
 
 my $commaNuc = commify($overallNucleotides);
 my $commaSeqCount = commify($overallSeqCount);
 my $commaGapSize = commify($overallGapSize);
 my $commaGapCount = commify($overallGapCount);
 
 my $percentDone = 100.0 * $asmCount / $assemblyTotal;
 my $doneMsg = "";
 if ($asmCount < $assemblyTotal) {
   $doneMsg = sprintf(" (%d build completed, %.2f %% finished)", $asmCount, $percentDone);
 }
 
 if ($assemblyTotal > 1) {
-  print <<"END"
-
+  print "
 </tbody>
 <tfoot><tr><th>TOTALS:</th><td align=center colspan=3>total assembly count&nbsp;${assemblyTotal}${doneMsg}</td>
   <td align=right>$commaSeqCount</td>
   <td align=right>$commaNuc</td>
   <td align=right>$commaGapCount</td>
   <td align=right>$commaGapSize</td>
   <td colspan=1>&nbsp;</td>
-  </tr></tfoot>
+  </tr>
+";
+
+  # try extra column headers as last row for this very large index page
+  if ($vgpIndex) {
+  print "<tr><th>count</th>
+  <th>common name<br>link&nbsp;to&nbsp;genome&nbsp;browser</th>
+  <th>scientific name<br>and&nbsp;data&nbsp;download</th>
+  <th>NCBI&nbsp;assembly</th>
+  <th>sequence<br>count</th><th>genome&nbsp;size<br>nucleotides</th>
+  <th>gap<br>count</th><th>unknown&nbsp;bases<br>(gap size sum)</th><th>masking<br>percent</th>
+  </tr>
+";
+  }
+
+  print "
+</tfoot>
 </table>
-END
-} else {
-  print <<"END"
+";
 
+  } else {
+  print "
 </tbody>
 </table>
-END
-}
+";
+  }	# $assemblyTotal <= 1
 }	#	sub endTable()
 
 ##############################################################################
 ### end the HTML output
 ##############################################################################
 sub endHtml() {
 
 # do not print these links for VGP index
 
 if ((0 == $vgpIndex) && ($asmHubName ne "viral")) {
   printf "<p>\n<table border='1'><thead>\n";
   printf "<tr><th colspan=6 style='text-align:center;'>Additional hubs with collections of assemblies</th></tr>\n";
   printf "<tr><th>Assembly hubs index pages:&nbsp;</th>\n";
   printf "<th><a href='../primates/index.html'>Primates</a></th>\n";
   printf "<th><a href='../mammals/index.html'>Mammals</a></th>\n";