bb1de08ea64e41b63cb861913f65712c29607e11 angie Fri Sep 22 15:51:49 2017 -0700 Updating urls for MGI ID. diff --git src/hg/hgc/hgc.c src/hg/hgc/hgc.c index f0c9bcf..2bba36b 100644 --- src/hg/hgc/hgc.c +++ src/hg/hgc/hgc.c @@ -11535,31 +11535,31 @@ rl->locusLinkId); printf("%d
\n", rl->locusLinkId); if ( (strstr(database, "mm") != NULL) && hTableExists(database, "MGIid")) { char *mgiID; sqlSafef(query, sizeof(query), "select MGIid from MGIid where LLid = '%d';", rl->locusLinkId); sr = sqlGetResult(conn, query); if ((row = sqlNextRow(sr)) != NULL) { printf("Mouse Genome Informatics: "); mgiID = cloneString(row[0]); - printf("%s
\n",mgiID, mgiID); + printf("%s
\n",mgiID, mgiID); } else { /* per Carol Bult from Jackson Lab 4/12/02, JAX do not always agree * with Locuslink on seq to gene association. * Thus, not finding a MGIid even if a LocusLink ID * exists is always a possibility. */ } sqlFreeResult(&sr); } } if (!startsWith("Worm", organism)) { if (startsWith("dm", database)) { @@ -11593,31 +11593,31 @@ { struct jaxOrtholog jo; char * sqlRlName = rl->name; /* Make sure to escape single quotes for DB parseability */ if (strchr(rl->name, '\'')) { sqlRlName = replaceChars(rl->name, "'", "''"); } sqlSafef(query, sizeof(query), "select * from jaxOrtholog where humanSymbol='%s'", sqlRlName); sr = sqlGetResult(conn, query); while ((row = sqlNextRow(sr)) != NULL) { jaxOrthologStaticLoad(row, &jo); printf("MGI Mouse Ortholog: "); - printf("", jo.mgiId); + printf("", jo.mgiId); printf("%s
\n", jo.mouseSymbol); } sqlFreeResult(&sr); } if (startsWith("hg", database)) { printf("\n"); printf("AceView: "); printf("", rl->name); printf("%s
\n", rl->name); } prGRShortRefGene(rl->name); } @@ -11672,31 +11672,31 @@ rl->locusLinkId); printf("%d
\n", rl->locusLinkId); if ( (strstr(database, "mm") != NULL) && hTableExists(database, "MGIid")) { char *mgiID; sqlSafef(query, sizeof(query), "select MGIid from MGIid where LLid = '%d';", rl->locusLinkId); sr = sqlGetResult(conn, query); if ((row = sqlNextRow(sr)) != NULL) { printf("Mouse Genome Informatics: "); mgiID = cloneString(row[0]); - printf("%s
\n",mgiID, mgiID); + printf("%s
\n",mgiID, mgiID); } else { /* per Carol Bult from Jackson Lab 4/12/02, JAX do not always agree * with Locuslink on seq to gene association. * Thus, not finding a MGIid even if a LocusLink ID * exists is always a possibility. */ } sqlFreeResult(&sr); } } } void doKnownGene(struct trackDb *tdb, char *rnaName) /* Process click on a known gene. */ @@ -14793,33 +14793,33 @@ sqlFreeResult(&sr); sqlSafef(query, sizeof query, "SELECT * FROM stsInfoMouse WHERE identNo = '%d'", stsRow.identNo); sr = sqlMustGetResult(conn, query); row = sqlNextRow(sr); if (row != NULL) { infoRow = stsInfoMouseLoad(row); printf("\n"); printf("\n", seqName); printf("\n",start+1); printf("\n",end); printf("
Chromosome:%s
Start:%d
End:%d
\n"); htmlHorizontalLine(); printf("\n"); printf("\n", infoRow->MGIMarkerID, infoRow->MGIMarkerID); + printf("%d\n", infoRow->MGIMarkerID, infoRow->MGIMarkerID); printf("\n", infoRow->MGIPrimerID, infoRow->MGIPrimerID); + printf("%d\n", infoRow->MGIPrimerID, infoRow->MGIPrimerID); printf("
MGI Marker ID:MGI:"); - printf("%d
MGI Probe ID:MGI:"); - printf("%d
\n"); htmlHorizontalLine(); /* Print out primer information */ printf("\n"); printf("\n",infoRow->primer1); printf("\n",infoRow->primer2); printf("\n",infoRow->distance); printf("
Left Primer:%s
Right Primer:%s
Distance:%s bps
\n"); htmlHorizontalLine(); /* Print out information from genetic maps for this marker */ printf("

Genetic Map Position

\n"); printf("\n"); printf("\n"); printf("\n", infoRow->stsMarkerName, infoRow->Chr, infoRow->geneticPos); @@ -18810,31 +18810,31 @@ struct sqlConnection *conn = hAllocConn(database); struct sqlResult *sr; char query[256]; char **row; int start = cartInt(cart, "o"); struct jaxQTL3 *jaxQTL; genericHeader(tdb, item); sqlSafef(query, sizeof query, "select * from jaxQTL3 where name = '%s' and chrom = '%s' and chromStart = %d", item, seqName, start); sr = sqlGetResult(conn, query); if ((row = sqlNextRow(sr)) != NULL) { jaxQTL = jaxQTL3Load(row); printf("Jax/MGI Link: "); - printf("%s
\n", + printf("%s
\n", jaxQTL->mgiID, jaxQTL->mgiID); printf("QTL: %s
\n", jaxQTL->name); printf("Description: %s
\n", jaxQTL->description); if (!sameWord("", jaxQTL->flank1)) { printf("Flank Marker 1: "); printf("flank1); printf("+&selectedQuery=Genes+and+Markers\">%s
\n", jaxQTL->flank1); } if (!sameWord("", jaxQTL->marker)) { printf("Peak Marker: "); printf("marker); printf("+&selectedQuery=Genes+and+Markers\">%s
\n", jaxQTL->marker);
 NameChromosomePosition
 %s%s%.2f