2b6b95bf5f076d29c670b88be7ae040b001b05f3 fanhsu Tue May 10 07:32:15 2011 -0700 Fixed the BioCyc URL to be variable depending on which genome the pathway belongs. diff --git src/hg/hgGene/pathways.c src/hg/hgGene/pathways.c index b0a9e4a..cea0d4c 100644 --- src/hg/hgGene/pathways.c +++ src/hg/hgGene/pathways.c @@ -92,32 +92,32 @@ struct sqlResult *sr; char *oldMapId = cloneString(""); safef(query, sizeof(query), "select bioCycPathway.mapId,description" " from bioCycPathway,bioCycMapDesc" " where bioCycPathway.kgId='%s'" " and bioCycPathway.mapId = bioCycMapDesc.mapId order by bioCycPathway.mapId" , geneId); sr = sqlGetResult(conn, query); while ((row = sqlNextRow(sr)) != NULL) { /* only print new ones */ if (!sameWord(oldMapId, row[0])) { - hPrintf("", - row[0]); + hPrintf("", + genome, row[0]); hPrintf("%s - %s
\n", row[0], row[1]); } oldMapId = cloneString(row[0]); } sqlFreeResult(&sr); } static int bioCycCount(struct pathwayLink *pl, struct sqlConnection *conn, char *geneId) /* Count up number of hits. */ { char query[256]; safef(query, sizeof(query), "select count(*) from bioCycPathway where kgID='%s'", geneId); return sqlQuickNum(conn, query);