2fa3bf05e8d9747c9acc077f159479e420a12e6c
hiram
Mon Mar 23 12:44:04 2015 -0700
allow hg18 to go to the archive server refs #14881
diff --git src/hg/hgTables/great.c src/hg/hgTables/great.c
index ae2a89b..8e41c66 100644
--- src/hg/hgTables/great.c
+++ src/hg/hgTables/great.c
@@ -158,30 +158,36 @@
}
boolean doGreat()
/* has the send to GREAT checkbox been selected? */
{
return cartUsualBoolean(cart, "sendToGreat", FALSE);
}
void doSubmitToGreat(const char *path)
/* Send a URL to GREAT that it can use to retrieve the results. */
{
struct dyString *requestName = getRequestName();
struct dyString *requestURL = dyStringCreate("http://%s/%s", cgiServerNamePort(), path);
struct dyString *greatRequest;
+// archive server for hg18
+if (sameWord("hg18", database))
+ greatRequest = dyStringCreate(
+ "",
+ dyStringContents(requestURL), database, dyStringContents(requestName));
+else
greatRequest = dyStringCreate(
"",
dyStringContents(requestURL), database, dyStringContents(requestName));
hPrintf("GREAT is processing BED data from \"%s\"...please wait.\n", dyStringContents(requestName));
hWrites(dyStringContents(greatRequest));
freeDyString(&greatRequest);
freeDyString(&requestName);
freeDyString(&requestURL);
}
void doGetGreatOutput(void (*dispatch)())
{
struct tempName tn;
int saveStdout;