e74715e9d666c58024f65db5a13d5047a4a65d52
greg
Thu Jun 30 17:17:48 2011 -0700
added
tags around the
's in the data formats section bc it a.) is required in html, and b.) was not showing correctly in FF on Linux because of this omission.
diff --git src/hg/hgLiftOver/hgLiftOver.c src/hg/hgLiftOver/hgLiftOver.c
index a844c88..c6ff0c3 100644
--- src/hg/hgLiftOver/hgLiftOver.c
+++ src/hg/hgLiftOver/hgLiftOver.c
@@ -1,586 +1,588 @@
/* hgLiftOver - CGI-script to convert coordinates using chain files */
#include "common.h"
#include "errabort.h"
#include "hCommon.h"
#include "jksql.h"
#include "portable.h"
#include "linefile.h"
#include "dnautil.h"
#include "fa.h"
#include "cheapcgi.h"
#include "htmshell.h"
#include "hdb.h"
#include "hui.h"
#include "cart.h"
#include "web.h"
#include "hash.h"
#include "liftOver.h"
#include "liftOverChain.h"
static char const rcsid[] = "$Id: hgLiftOver.c,v 1.62 2009/07/14 20:17:30 markd Exp $";
/* CGI Variables */
#define HGLFT_USERDATA_VAR "hglft_userData" /* typed/pasted in data */
#define HGLFT_DATAFILE_VAR "hglft_dataFile" /* file of data to convert */
#define HGLFT_FROMORG_VAR "hglft_fromOrg" /* FROM organism */
#define HGLFT_FROMDB_VAR "hglft_fromDb" /* FROM assembly */
#define HGLFT_TOORG_VAR "hglft_toOrg" /* TO organism */
#define HGLFT_TODB_VAR "hglft_toDb" /* TO assembly */
#define HGLFT_ERRORHELP_VAR "hglft_errorHelp" /* Print explanatory text */
#define HGLFT_REFRESHONLY_VAR "hglft_doRefreshOnly" /* Just refresh drop-down lists */
#define HGLFT_LAST_CHAIN "hglft_lastChain"
/* liftOver options: */
#define HGLFT_MINMATCH "hglft_minMatch"
#define HGLFT_MINSIZEQ "hglft_minSizeQ"
#define HGLFT_MINCHAINT "hglft_minChainT"
#define HGLFT_MULTIPLE "hglft_multiple"
#define HGLFT_MINBLOCKS "hglft_minBlocks"
#define HGLFT_FUDGETHICK "hglft_fudgeThick"
/* Global Variables */
struct cart *cart; /* CGI and other variables */
struct hash *oldVars = NULL;
/* Filename prefix */
#define HGLFT "hglft"
/* Javascript to support New Assembly pulldown when Orig Assembly changes */
/* Copies selected value from the Original Assembly pulldown to a hidden form
*/
char *onChange =
"onchange=\"document.mainForm."
HGLFT_REFRESHONLY_VAR
".value = 1;"
"document.mainForm.submit();\"";
char *chainStringVal(struct liftOverChain *chain)
/* keep the last chain in memory in this format */
{
char chainS[64];
safef(chainS, sizeof(chainS), "%s.%s", chain->fromDb, chain->toDb);
return cloneString(chainS);
}
void webMain(struct liftOverChain *chain, boolean multiple, boolean keepSettings, int minSizeQ,
int minChainT, float minBlocks, float minMatch, boolean fudgeThick)
/* set up page for entering data */
{
struct dbDb *dbList;
char *fromOrg = hArchiveOrganism(chain->fromDb), *toOrg = hArchiveOrganism(chain->toDb);
char *chainString = chainStringVal(chain);
cgiParagraph(
"This tool converts genome coordinates and genome annotation files "
"between assemblies. "
"The input data can be pasted into the text box, or uploaded from a file. "
"If a pair of assemblies cannot be selected from the pull-down menus,"
" a direct lift between them is unavailable. "
"However, a sequential lift may be possible. "
"Example: lift from Mouse, May 2004, to Mouse, Feb. 2006, and then from Mouse, "
"Feb. 2006 to Mouse, July 2007 to achieve a lift from mm5 to mm9. "
"");
/* create HMTL form */
puts("