src/hg/hgTracks/bedGraph.c 1.23

1.23 2010/05/11 01:43:26 kent
Refactoring to split the trackDb.tableName field into separate track and table fields. Similarly track.mapName field goes to the same track and table fields.
Index: src/hg/hgTracks/bedGraph.c
===================================================================
RCS file: /projects/compbio/cvsroot/kent/src/hg/hgTracks/bedGraph.c,v
retrieving revision 1.22
retrieving revision 1.23
diff -b -B -U 4 -r1.22 -r1.23
--- src/hg/hgTracks/bedGraph.c	27 Apr 2010 23:31:41 -0000	1.22
+++ src/hg/hgTracks/bedGraph.c	11 May 2010 01:43:26 -0000	1.23
@@ -35,9 +35,9 @@
 /*	load custom bedGraph track data	*/
 
 /*	Verify this is a custom track	*/
 if (tg->customPt == (void *)NULL)
-    errAbort("ctBedGraphLoadItems: did not find a custom wiggle track: %s", tg->mapName);
+    errAbort("ctBedGraphLoadItems: did not find a custom wiggle track: %s", tg->track);
 
 errAbort("custom track bedGraph load items not yet implemented");
 }
 
@@ -56,9 +56,9 @@
 struct wigCartOptions *wigCart = (struct wigCartOptions *) tg->extraUiData;
 int graphColumn = 5;
 char *tableName;
 
-if(sameString(tg->mapName, "affyTranscription"))
+if(sameString(tg->track, "affyTranscription"))
     wigCart->colorTrack = "affyTransfrags";
 graphColumn = wigCart->graphColumn;
 
 
@@ -71,9 +71,9 @@
     }
 else 
 #endif /* GBROWSE */
     {
-    tableName = tg->mapName;
+    tableName = tg->table;
     conn = hAllocConnTrack(database, tg->tdb);
     }
 
 sr = hRangeQuery(conn, tableName, chromName, winStart, winEnd, NULL,