8b57e7b99e48f4a14eb47ad5660d6482de555d0d markd Sat Sep 15 15:16:21 2012 -0700 add link to GeneCards in GENCODE details page diff --git src/hg/hgc/gencodeClick.c src/hg/hgc/gencodeClick.c index 43250e2..4dbbbc1 100644 --- src/hg/hgc/gencodeClick.c +++ src/hg/hgc/gencodeClick.c @@ -217,30 +217,35 @@ 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>Annotation Level<td>%s (%d)<td></tr>\n", getLevelDesc(transAttrs->level), transAttrs->level); printf("<tr><th>Annotation Method<td>%s<td>%s</tr>\n", getMethodDesc(transcriptSource->source), getMethodDesc(geneSource->source)); if (haveTsl) { char *tslDesc = getSupportLevelDesc(tsl); printf("<tr><th><a href=\"#tsl\">Transcription Support Level</a><td><a href=\"#%s\">%s</a><td></tr>\n", tslDesc, tslDesc); } printf("<tr><th>HUGO gene<td colspan=2>%s</tr>\n", transAttrs->geneName); printf("<tr><th>CCDS<td>%s<td></tr>\n", transAttrs->ccdsId); +printf("<tr><th>GeneCards<td colspan=2>"); +if (!isEmpty(transAttrs->geneName)) + printf("<a href = \"http://www.genecards.org/cgi-bin/carddisp.pl?gene=%s\" TARGET=_blank>%s</A>\n", + transAttrs->geneName, transAttrs->geneName); +printf("</tr>\n"); // 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"); printf("</thead><tbody>\n"); if (transAnno->cdsStart < transAnno->cdsEnd) { // protein coding printf("<tr><td width=\"50%%\">"); hgcAnchorSomewhere("htcGeneMrna", gencodeId, tdb->table, seqName);