1d2a675ae988808110af74d46ebe63658d49c687
fanhsu
Fri Jun 10 10:28:47 2011 -0700
For omimAvSnp, open snp hgc page in the same window instead of opening new one. And go to snp130 for hg18.
diff --git src/hg/hgc/hgc.c src/hg/hgc/hgc.c
index b53ae33..6922f02 100644
--- src/hg/hgc/hgc.c
+++ src/hg/hgc/hgc.c
@@ -9842,32 +9842,40 @@
printf("
\n");
safef(query, sizeof(query),
"select dbSnpId from omimAvRepl where avId='%s'", avId);
sr = sqlMustGetResult(conn, query);
row = sqlNextRow(sr);
if (row != NULL)
{
dbSnpId = cloneString(row[0]);
}
sqlFreeResult(&sr);
if (!sameWord(dbSnpId, "-"))
{
printf("dbSNP: \n");
- printf("",
+ if (sameWord(database, "hg18"))
+ {
+ printf("",
+ "../cgi-bin/hgc?g=snp130&i=", dbSnpId);
+ }
+ else
+ {
+ printf("",
"../cgi-bin/hgc?g=snp132&i=", dbSnpId);
+ }
printf("%s", dbSnpId);
fflush(stdout);
}
}
printf("