static void prGenbankLink(struct cloneInfo *ci) /* create link to Genbank database */ { webPrintLinkTableNewRow(); webPrintLinkCellStart(); printf("<a href=\""); printEntrezNucleotideUrl(stdout, ci->acc); printf("\" TARGET=_blank>Genbank %s</a>", ci->acc); webPrintLinkCellEnd(); }
static void prRefSeqLinks(struct cloneInfo *ci) /* print link to RefSeq */ { webPrintLinkTableNewRow(); webPrintLinkCellStart(); printf("<a href=\""); printEntrezNucleotideUrl(stdout, ci->refSeqAccv); printf("\" TARGET=_blank>RefSeq %s</a>", ci->refSeqAccv); webPrintLinkCellEnd(); }
static void ccdsNcbiRows(char *ccdsId, struct ccdsInfo *rsCcds) /* output RefSeq CCDS entries */ { struct ccdsInfo *ci; for (ci = rsCcds; ci != NULL; ci = ci->next) { printf("<TR>"); if (ci == rsCcds) printf("<TH ROWSPAN=%d>RefSeq", slCount(rsCcds)); printf("<TD><A HREF=\""); printEntrezNucleotideUrl(stdout, ci->mrnaAcc); printf("\" TARGET=_blank>%s</A> ", ci->mrnaAcc); printf("<TD><A HREF=\""); printEntrezProteinUrl(stdout, ci->protAcc); printf("\" TARGET=_blank>%s</A>", ci->protAcc); printf("</TR>\n"); } }
static void prRefSeqSim(struct cloneInfo *ci, struct geneSim *gs) /* print similarity information for a given RefSeq */ { webPrintLinkTableNewRow(); // RefSeq acc and link webPrintLinkCellStart(); printf("<a href=\""); printEntrezNucleotideUrl(stdout, gs->gene->name); printf("\" TARGET=_blank>%s</a>", gs->gene->name); webPrintLinkCellEnd(); // link to browser webPrintLinkCellStart(); printf("<A HREF=\"%s&db=%s&position=%s%%3A%d-%d\" target=_blank>%s:%d-%d</A>", hgTracksPathAndSettings(), database, gs->gene->chrom, gs->gene->txStart+1, gs->gene->txEnd, gs->gene->chrom, gs->gene->txStart+1, gs->gene->txEnd); webPrintLinkCellEnd(); // similarity webPrintLinkCellRightStart(); printf("%0.2f%%", 100.0*gs->sim); webPrintLinkCellEnd(); }