ebeefbf41d884926efc42da649b73e4bf120b216
tdreszer
Thu May 5 16:50:56 2011 -0700
Reverting span center to old style center tags because CSS didn't work as expected.
diff --git src/hg/hgGeneRing/hgGeneRing.c src/hg/hgGeneRing/hgGeneRing.c
index f11d9e0..1b31dba 100644
--- src/hg/hgGeneRing/hgGeneRing.c
+++ src/hg/hgGeneRing/hgGeneRing.c
@@ -68,44 +68,44 @@
char *position = cloneString(cartUsualString(cart, "position", defaultPosition));
boolean gotClade = hGotClade();
/* JavaScript to copy input data on the change genome button to a hidden form
This was done in order to be able to flexibly arrange the UI HTML
*/
char *onChangeDB = "onchange=\"document.orgForm.db.value = document.mainForm.db.options[document.mainForm.db.selectedIndex].value; document.orgForm.submit();\"";
char *onChangeOrg = "onchange=\"document.orgForm.org.value = document.mainForm.org.options[document.mainForm.org.selectedIndex].value; document.orgForm.db.value = 0; document.orgForm.submit();\"";
char *onChangeClade = "onchange=\"document.orgForm.clade.value = document.mainForm.clade.options[document.mainForm.clade.selectedIndex].value; document.orgForm.org.value = 0; document.orgForm.db.value = 0; document.orgForm.submit();\"";
if (sameString(position, "genome") || sameString(position, "hgBatch"))
position = defaultPosition;
puts(
"
\n"
);
puts("
");
}
@@ -367,62 +367,62 @@
return result;
}
void getGeneList()
/* hgGeneRing - Gene Network Browser. */
{
/* not much point in this, though called old it's the same as current
at this point. It is not the old value from before the last submit.
char *oldGeneList = hashFindVal(oldVars, "ring_geneList");
*/
if (!sameString(errMsg,""))
{
- printf("%s\n",errMsg);
+ printf("%s\n",errMsg);
}
puts(
"\n");
cartSetString(cart, "ring_action", "saveGeneList");
cartSetString(cart, "ring_errMsg", "");
}
int compareNodes(const void *va, const void *vb)
{
const struct nodelist *a = *((struct nodelist **)va);
const struct nodelist *b = *((struct nodelist **)vb);
if (a->node->ring && !b->node->ring) return -1;
if (!a->node->ring && b->node->ring) return 1;
@@ -447,45 +447,45 @@
*/
{
struct interaction* intr;
struct nodelist *nl;
if (!getGenesAsList())
{
getGeneList();
return FALSE;
}
if (showAll)
{
puts(
- ""
+ ""
"\n"
"\n"
);
printf("geneList: %s \n",
geneList
);
puts(
" |
"
"gene-list\n"
" |
"
"screen\n"
);
puts(
- " |
\n"
+ "\n"
);
}
interactions = getGenesFromTable("intrP2P"); /* adds geneList elements to hash */
if (showAll)
{
uglyf("slCount = %d for result list for %s.
\n",slCount(interactions),geneList);
}
/* this might get moved later */
/* add to hash the remaining interactions members */
for(intr=interactions;intr;intr=intr->next)
@@ -760,43 +760,43 @@
}
}
}
nl=nl->next;
}
printf("\n");
mgSaveGif(mg, filename.forCgi, FALSE);
width=height=SCREEN_SIZE;
-printf("");
+printf("");
printf(" |
");
printf(" ",
filename.forHtml, width, height, mapName);
printf(" |
");
printf(" |
");
printf(
""
"back "
"gene-list "
"refresh "
" |
");
-printf(" |
");
+printf(" |
");
}
char *unAlias(char *gene)
/* deal with alias mapping for gene names, return FBgn */
{
struct hashEl *hf=NULL;
if (!startsWith("FBgn",gene))
{
if (hf=hashLookup(aliasHash,gene))
{
gene=(char *)hf->val;
}
}
return gene;