387377eb3982c570bc06728b9e0380c3d1c006ec max Wed Jan 25 05:30:25 2023 -0800 adding linkout to primer3 RT-QPCR primer designer from hgGene, refs #30545 diff --git src/hg/hgGene/sequence.c src/hg/hgGene/sequence.c index 6f34544..206953a 100644 --- src/hg/hgGene/sequence.c +++ src/hg/hgGene/sequence.c @@ -7,30 +7,42 @@ #include "hash.h" #include "linefile.h" #include "dystring.h" #include "cheapcgi.h" #include "hui.h" #include "hdb.h" #include "web.h" #include "dnautil.h" #include "dbDb.h" #include "axtInfo.h" #include "obscure.h" #include "hCommon.h" #include "hgGene.h" +void printPrimer3Anchor(char *table, char *itemName, + char *chrom, int start, int end) +/* Print primer3 sequence export anchor. */ +{ +hPrintf("<A HREF=\"%s?%s", hgcName(), + cartSidUrlString(cart)); +hPrintf("&g=htcDnaNearGene&i=%s", itemName); +hPrintf("&c=%s&l=%d&r=%d", chrom, start, end); +hPrintf("&o=%s&table=%s&primer3=1", table, table); +hPrintf("\">"); +} + static void printGenomicAnchor(char *table, char *itemName, char *chrom, int start, int end) /* Print genomic sequence anchor. */ { hPrintf("<A HREF=\"%s?%s", hgcName(), cartSidUrlString(cart)); hPrintf("&g=htcGeneInGenome&i=%s", itemName); hPrintf("&c=%s&l=%d&r=%d", chrom, start, end); hPrintf("&o=%s&table=%s", table, table); hPrintf("\" class=\"toc\">"); } void printGenomicSeqLink(struct sqlConnection *conn, char *geneId, char *chrom, int start, int end) /* Figure out known genes table, position of gene, link it. */