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("\n"); printf("\n"); printf("\n"); -printf("\n"); -printf("\n"); -printf("\n"); +printf("\n", transAnno->strand); + printf("\n", transAttrs->transcriptType, transAttrs->geneType); /* FIXME: add href o */ printf("\n", transAttrs->transcriptStatus, transAttrs->geneStatus); printf("\n", getMethodDesc(transcriptSource->source), getMethodDesc(geneSource->source)); printf("\n", transAttrs->geneName); printf("\n", transAttrs->ccdsId); // FIXME: add sequence here?? printf("
TranscriptGene
Position"); -printf(""); -writePosLink(transAnno->chrom, transAnno->txStart, transAnno->txEnd); -printf(""); -writePosLink(transAnno->chrom, geneChromStart, geneChromEnd); +printf("
Gencode id"); +prTdExtIdAnchor(tdb, transAttrs->transcriptId, "ensemblTranscriptIdUrl"); +prTdExtIdAnchor(tdb, transAttrs->geneId, "ensemblGeneIdUrl"); printf("
HAVANA manual"); +printf("
HAVANA manual id"); prTdExtIdAnchor(tdb, transAttrs->havanaTranscriptId, "vegaTranscriptIdUrl"); prTdExtIdAnchor(tdb, transAttrs->havanaGeneId, "vegaGeneIdUrl"); printf("
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("
Position"); +printf(""); +writePosLink(transAnno->chrom, transAnno->txStart, transAnno->txEnd); +printf(""); +writePosLink(transAnno->chrom, geneChromStart, geneChromEnd); printf("
Strand%s
Biotype%s%s
Status%s%s
Method%s%s
HUGO gene%s
CCDS%s
\n"); } static void writeSequenceHtml(struct trackDb *tdb, char *gencodeId, struct genePred *transAnno) /* write links to get sequences */ { printf("\n"); printf("\n");
Sequences