bfd65062afc4680469997b65a84b86533ec1bfc3 galt Tue Jun 4 11:57:54 2013 -0700 fixing where clause oops in fixsqli stuff diff --git src/hg/lib/lsSnpPdbChimera.c src/hg/lib/lsSnpPdbChimera.c index 4ab6ac5..95cf282 100644 --- src/hg/lib/lsSnpPdbChimera.c +++ src/hg/lib/lsSnpPdbChimera.c @@ -72,31 +72,31 @@ char *pdbId, char *where, char *primarySnpId, char *outName) /* Generate a chimerax file for the given PDB, optionally coloring * primarySnpId differently. The where arguments specifies which entries to * obtain from the lsSnpPdb table. */ { FILE *xfh = chimeraxBegin(outName); fprintf(xfh, "\ndisplayPdb(\"%s\", (", pdbId); struct lsSnpPdb *pdbSnp, *pdbSnps = NULL; if (sqlTableExists(conn, "lsSnpPdb")) pdbSnps = sqlQueryObjs(conn, (sqlLoadFunc)lsSnpPdbLoad, sqlQueryMulti, - "SELECT * FROM lsSnpPdb WHERE %s", where); + "SELECT * FROM lsSnpPdb WHERE %-s", where); for (pdbSnp = pdbSnps; pdbSnp != NULL; pdbSnp = pdbSnp->next) prSnp(xfh, pdbSnp, primarySnpId); lsSnpPdbFreeList(&pdbSnps); fprintf(xfh, "))\n"); chimeraxEnd(&xfh); } void lsSnpPdbChimeraSnpAnn(struct sqlConnection *conn, char *pdbId, char *primarySnpId, struct tempName *outName) /* Generate a chimerax file for the given pdb with all non-synonymous SNPs * that have been mapped to this protein. If primarySnpId is not NULL, it is * colored differently than the other SNPs. Fills in outName structure. */