src/hg/hgTracks/hgTracks.c 1.1615

1.1615 2009/12/18 23:41:45 kate
Add count of sequences to chromInfo page (hg19 has greatly expanded the count over hg18)
Index: src/hg/hgTracks/hgTracks.c
===================================================================
RCS file: /projects/compbio/cvsroot/kent/src/hg/hgTracks/hgTracks.c,v
retrieving revision 1.1614
retrieving revision 1.1615
diff -b -B -U 4 -r1.1614 -r1.1615
--- src/hg/hgTracks/hgTracks.c	12 Dec 2009 01:03:18 -0000	1.1614
+++ src/hg/hgTracks/hgTracks.c	18 Dec 2009 23:41:45 -0000	1.1615
@@ -5062,14 +5062,14 @@
 else
     doTrackForm(NULL, NULL);
 }
 
-void chromInfoTotalRow(long long total)
-/* Make table row with total size from chromInfo. */
+void chromInfoTotalRow(int count, long long total)
+/* Make table row with total number of sequences and size from chromInfo. */
 {
 cgiSimpleTableRowStart();
 cgiSimpleTableFieldStart();
-printf("Total");
+printf("Total: %d", count);
 cgiTableFieldEnd();
 cgiSimpleTableFieldStart();
 printLongWithCommas(stdout, total);
 cgiTableFieldEnd();
@@ -5099,9 +5099,9 @@
     cgiTableFieldEnd();
     cgiTableRowEnd();
     total += size;
     }
-chromInfoTotalRow(total);
+chromInfoTotalRow(slCount(chromList), total);
 slFreeList(&chromList);
 }
 
 void chromInfoRowsNonChrom(int limit)
@@ -5147,9 +5147,9 @@
     total += size;
     }
 if (!truncating)
     {
-    chromInfoTotalRow(total);
+    chromInfoTotalRow(seqCount, total);
     }
 else
     {
     safef(msg1, sizeof(msg1), "Limit reached");