4d9f7dcf6cb0a0bfc9ddf9b3e023be3de99f8044
markd
  Mon Aug 8 23:20:48 2011 -0700
reorder basic information and user clearer labeling.  include strand and fix position wrap
diff --git src/hg/hgc/gencodeClick.c src/hg/hgc/gencodeClick.c
index 4c62fb0..e7ae23d 100644
--- src/hg/hgc/gencodeClick.c
+++ src/hg/hgc/gencodeClick.c
@@ -155,47 +155,51 @@
                                int geneChromStart, int geneChromEnd,
                                struct wgEncodeGencodeGeneSource *geneSource, struct wgEncodeGencodeTranscriptSource *transcriptSource)
 /* write basic HTML info for all genes */
 {
 /*
  * notes:
  *   - According to Steve: `status' is not the same for ensembl and havana.  So either avoid displaying it
  *     or display it as `automatic status' or `manual status'.
  */
 
 // basic gene and transcript information
 printf("<table class=\"hgcCcds\"><thead>\n");
 printf("<tr><th><th>Transcript<th>Gene</tr>\n");
 printf("</thead><tbody>\n");
 
-printf("<tr><th>Position");
-printf("<td>");
-writePosLink(transAnno->chrom, transAnno->txStart, transAnno->txEnd);
-printf("<td>");
-writePosLink(transAnno->chrom, geneChromStart, geneChromEnd);
+printf("<tr><th>Gencode id");
+prTdExtIdAnchor(tdb, transAttrs->transcriptId, "ensemblTranscriptIdUrl");
+prTdExtIdAnchor(tdb, transAttrs->geneId, "ensemblGeneIdUrl");
 printf("</tr>\n");
 
-printf("<tr><th>HAVANA manual");
+printf("<tr><th>HAVANA manual id");
 prTdExtIdAnchor(tdb, transAttrs->havanaTranscriptId, "vegaTranscriptIdUrl");
 prTdExtIdAnchor(tdb, transAttrs->havanaGeneId, "vegaGeneIdUrl");
 printf("</tr>\n");
 
-printf("<tr><th>Ensembl automatic");
-prTdExtIdAnchor(tdb, transAttrs->transcriptId, "ensemblTranscriptIdUrl");
-prTdExtIdAnchor(tdb, transAttrs->geneId, "ensemblGeneIdUrl");
+// FIXME: white-space style should be in CCS, but don't want to risk breaking
+// other things.
+printf("<tr><th>Position");
+printf("<td style=\"white-space: nowrap;\">");
+writePosLink(transAnno->chrom, transAnno->txStart, transAnno->txEnd);
+printf("<td style=\"white-space: nowrap;\">");
+writePosLink(transAnno->chrom, geneChromStart, geneChromEnd);
 printf("</tr>\n");
 
+printf("<tr><th>Strand<td>%s<td></tr>\n", transAnno->strand);
+
 printf("<tr><th><a href=\"http://www.gencodegenes.org/gencode_biotypes.html\">Biotype</a><td>%s<td>%s</tr>\n", transAttrs->transcriptType, transAttrs->geneType);
 /* FIXME: add href o */
 printf("<tr><th>Status<td>%s<td>%s</tr>\n", transAttrs->transcriptStatus, transAttrs->geneStatus);
 printf("<tr><th>Method<td>%s<td>%s</tr>\n", getMethodDesc(transcriptSource->source), getMethodDesc(geneSource->source));
 printf("<tr><th>HUGO gene<td colspan=2>%s</tr>\n", transAttrs->geneName);
 printf("<tr><th>CCDS<td>%s<td></tr>\n", transAttrs->ccdsId);
 // FIXME: add sequence here??
 printf("</tbody></table>\n");
 }
 
 static void writeSequenceHtml(struct trackDb *tdb, char *gencodeId, struct genePred *transAnno)
 /* write links to get sequences */
 {
 printf("<table class=\"hgcCcds\"><thead>\n");
 printf("<tr><th colspan=\"2\">Sequences</tr>\n");