src/hg/instinct/bioInt2/grabData.c 1.3

1.3 2009/04/07 03:41:09 jsanborn
updated
Index: src/hg/instinct/bioInt2/grabData.c
===================================================================
RCS file: /projects/compbio/cvsroot/kent/src/hg/instinct/bioInt2/grabData.c,v
retrieving revision 1.2
retrieving revision 1.3
diff -b -B -U 4 -r1.2 -r1.3
--- src/hg/instinct/bioInt2/grabData.c	6 Apr 2009 18:51:43 -0000	1.2
+++ src/hg/instinct/bioInt2/grabData.c	7 Apr 2009 03:41:09 -0000	1.3
@@ -86,21 +86,23 @@
 void spHashListPrint(struct slPair *inSpList, struct slName *inSlList, char *tableName)
 {
 struct slPair *spList = NULL;
 struct slName *slList = NULL;
+
+char filename[256];
 if (transpose)
     {
+    safef(filename, sizeof(filename), "%s_data_transpose.tab", tableName);
     fprintf(stdout, "transposing hash\n");
     spHashListTranspose(inSpList, inSlList, &spList, &slList);
     fprintf(stdout, "finished transposing\n");
     }
 else
     {
+    safef(filename, sizeof(filename), "%s_data.tab", tableName);
     spList = inSpList;
     slList = inSlList;
     }
-char filename[256];
-safef(filename, sizeof(filename), "%s_data.tab", tableName);
 FILE *f = mustOpen(filename, "w");
 
 struct slName *sl;
 struct slPair *sp;