797ac7e0b2e66cdfc46abeb801baa4da0e9aac92 kent Wed Aug 4 16:45:35 2010 -0700 Reworking a little how cell line abbreviation table appears, and moving some of the code for it to the library. diff --git src/hg/hgc/peakClusters.c src/hg/hgc/peakClusters.c index 5102a73..616baa3 100644 --- src/hg/hgc/peakClusters.c +++ src/hg/hgc/peakClusters.c @@ -324,26 +324,12 @@ } webPrintLinkTableEnd(); - webNewSection("Track Description"); - - /* Print out table of abbreviations. */ + webNewSection("Table of abbreviations for cells"); char *sourceTable = trackDbRequiredSetting(tdb, "sourceTable"); - printf("Table of abbreviations for cells
\n"); - safef(query, sizeof(query), "select name,description from %s order by name", sourceTable); - struct sqlResult *sr = sqlGetResult(conn, query); - webPrintLinkTableStart(); - webPrintLabelCell("Symbol"); - webPrintLabelCell("Cell Type"); - while ((row = sqlNextRow(sr)) != NULL) - { - printf("\n"); - char *name = row[0]; - char *description = row[1]; - webPrintLinkCell(name); - webPrintLinkCell(description); - } - sqlFreeResult(&sr); - webPrintLinkTableEnd(); + hPrintAbbreviationTable(conn, sourceTable, "Cell Type"); + + + webNewSection("Track Description"); } }