src/hg/instinct/bioInt2/grabData.c 1.8
1.8 2010/05/07 00:37:30 jzhu
Index: src/hg/instinct/bioInt2/grabData.c
===================================================================
RCS file: /projects/compbio/cvsroot/kent/src/hg/instinct/bioInt2/grabData.c,v
retrieving revision 1.7
retrieving revision 1.8
diff -b -B -U 4 -r1.7 -r1.8
--- src/hg/instinct/bioInt2/grabData.c 5 Jun 2009 20:55:40 -0000 1.7
+++ src/hg/instinct/bioInt2/grabData.c 7 May 2010 00:37:30 -0000 1.8
@@ -18,20 +18,23 @@
"usage:\n"
" grabData [options] table\n"
" -clinical get clinical data corresponding to table\n"
" -transpose samples as rows, features as columns\n"
+ " -dataOnly only report the data from table, without the stats\n"
);
}
char db[128] = "bioInt";
char localDb[128] = "localDb";
boolean getClinical = FALSE;
boolean transpose = FALSE;
+boolean dataOnly = FALSE;
static struct optionSpec options[] = {
{"clinical", OPTION_BOOLEAN},
{"transpose", OPTION_BOOLEAN},
+ {"dataOnly", OPTION_BOOLEAN},
{NULL, 0}
};
struct valConf {
@@ -145,9 +148,12 @@
el = hashLookup(hash, sl->name);
if (el)
{
struct valConf *vc = el->val;
+ if (dataOnly==FALSE)
fprintf(f, "%f,%f", vc->val, vc->conf);
+ else
+ fprintf(f, "%f", vc->val);
}
if (sl->next)
fprintf(f, "\t");
}
@@ -411,8 +417,11 @@
if (optionExists("transpose"))
transpose = TRUE;
+if (optionExists("dataOnly"))
+ dataOnly = TRUE;
+
grabData(argv[1]);
return 0;
}