21a6584e8ecdbba6d802ab30f3ec564c08b7dcc3
galt
Sat Jun 29 02:11:16 2013 -0700
fixing callers of sqlGetField to use sqlSafeFrag
diff --git src/hg/hgc/virusClick.c src/hg/hgc/virusClick.c
index 129de87..55f15eb 100644
--- src/hg/hgc/virusClick.c
+++ src/hg/hgc/virusClick.c
@@ -260,31 +260,31 @@
if (getH1n1Model(gene, modelPdbUrl))
{
struct tempName imageFile, chimeraScript, chimerax;
mkH1n1StructData(gene, NULL, aaSeqId, &imageFile, &chimeraScript);
mkChimerax(gene, modelPdbUrl, chimeraScript.forCgi, &chimerax);
printf("%s, view with Chimera
\n", modelPdbUrl, gene, chimerax.forHtml);
printf("
\n");
printf("\n");
printf(" | ", imageFile.forHtml);
printf("
\n");
printf("
\n");
}
return;
gotPDBFile = 0;
-safef(cond_str, sizeof(cond_str), "proteinID='%s' and evalue <1.0e-5;", item);
+sqlSafefFrag(cond_str, sizeof(cond_str), "proteinID='%s' and evalue <1.0e-5;", item);
printf("\n");
printf("Front | \n");
printf("Top | \n");
printf("Side | \n");
printf("
\n");
printf("\n");
printf(" | ", getH1n1StructUrl(), item, item);
printf(" | ", getH1n1StructUrl(), item, item);
printf(" | ", getH1n1StructUrl(), item, item);
printf("
\n");
printf("\n");
printf("500x500 | ",
getH1n1StructUrl(), item, item);
printf("500x500 | ",
@@ -292,31 +292,31 @@
printf("500x500 | ",
getH1n1StructUrl(), item, item);
printf("
\n");
printf("
\n");
printf("
Detailed results of SAM-T02: ");
printf("%s
\n", item);
/* by pass the following additional processing for now, until two necessary tables are built */
hFreeConn(&conn2);
return;
if (sqlGetField(database, "protHomolog", "proteinID", cond_str) != NULL)
{
- safef(cond_str, sizeof(cond_str), "proteinID='%s'", item);
+ sqlSafefFrag(cond_str, sizeof(cond_str), "proteinID='%s'", item);
predFN = sqlGetField(database, "protPredFile", "predFileName", cond_str);
if (predFN != NULL)
{
printf("%s
\n", item,item); */
printf("%s\">%s
\n", predFN,item);
gotPDBFile = 1;
}
}
if (!gotPDBFile)
{
printf("No high confidence level structure prediction available for this sequence.");
printf("
\n");
}
printf("3D Structure of Close Homologs: ");
@@ -405,31 +405,31 @@
printf("\" TARGET=_blank>%s
\n", item);
printf("Secondary Structure Predictions: ");
printf("%s
\n", item);
printf("3D Structure Prediction (PDB file): ");
char pdbUrl[PATH_LEN];
safef(pdbUrl, sizeof(pdbUrl), "%s/%s/decoys/%s.try1-opt3.pdb.gz", getH1n1StructUrl(), item, item);
struct tempName chimerax;
mkChimerax(item, pdbUrl, NULL, &chimerax);
printf("%s, view with Chimera
\n", pdbUrl, item, chimerax.forHtml);
gotPDBFile = 0;
-safef(cond_str, sizeof(cond_str), "proteinID='%s' and evalue <1.0e-5;", item);
+sqlSafefFrag(cond_str, sizeof(cond_str), "proteinID='%s' and evalue <1.0e-5;", item);
printf("\n");
printf("Front | \n");
printf("Top | \n");
printf("Side | \n");
printf("
\n");
printf("\n");
printf(" | ", getH1n1StructUrl(), item, item);
printf(" | ", getH1n1StructUrl(), item, item);
printf(" | ", getH1n1StructUrl(), item, item);
printf("
\n");
printf("\n");
printf("500x500 | ",
getH1n1StructUrl(), item, item);
printf("500x500 | ",
@@ -437,31 +437,31 @@
printf("500x500 | ",
getH1n1StructUrl(), item, item);
printf("
\n");
printf("
\n");
printf("
Detailed results of SAM-T02: ");
printf("%s
\n", item);
/* by pass the following additional processing for now, until two necessary tables are built */
hFreeConn(&conn2);
return;
if (sqlGetField(database, "protHomolog", "proteinID", cond_str) != NULL)
{
- safef(cond_str, sizeof(cond_str), "proteinID='%s'", item);
+ sqlSafefFrag(cond_str, sizeof(cond_str), "proteinID='%s'", item);
predFN = sqlGetField(database, "protPredFile", "predFileName", cond_str);
if (predFN != NULL)
{
printf("%s
\n", item,item); */
printf("%s\">%s
\n", predFN,item);
gotPDBFile = 1;
}
}
if (!gotPDBFile)
{
printf("No high confidence level structure prediction available for this sequence.");
printf("
\n");
}
printf("3D Structure of Close Homologs: ");