src/hg/lib/wiggleCart.c 1.39

1.39 2010/05/11 01:43:30 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/lib/wiggleCart.c
===================================================================
RCS file: /projects/compbio/cvsroot/kent/src/hg/lib/wiggleCart.c,v
retrieving revision 1.38
retrieving revision 1.39
diff -b -B -U 4 -r1.38 -r1.39
--- src/hg/lib/wiggleCart.c	29 Apr 2010 23:39:53 -0000	1.38
+++ src/hg/lib/wiggleCart.c	11 May 2010 01:43:30 -0000	1.39
@@ -67,9 +67,9 @@
 }
 
 #ifdef NOT
 /*	example usage:	*/
-snprintf(dbgMsg, DBGMSGSZ, "%s pixels: min,default,max: %d:%d:%d", tdb->tableName, wigCart->minHeight, wigCart->defaultHeight, wigCart->maxHeight);
+snprintf(dbgMsg, DBGMSGSZ, "%s pixels: min,default,max: %d:%d:%d", tdb->track, wigCart->minHeight, wigCart->defaultHeight, wigCart->maxHeight);
 wigDebugPrint("wigFetch");
 #endif
 
 #endif
@@ -223,9 +223,9 @@
     if (hIsPrivateHost())
 	warn("trackDb %s, and no default view limits are specified for track %s",
 	     (isBedGraph ? MIN_LIMIT " and/or " MAX_LIMIT " is not specified" :
 			   "'type wig' line is missing min and/or max data value"),
-	     tdb->tableName);
+	     tdb->track);
     // When that becomes an errAbort, remove these defines from wiggle.h:
     if (isBedGraph)
 	{
 	absMin = DEFAULT_MIN_BED_GRAPH;
@@ -504,9 +504,9 @@
     else if (sameWord(tdbDefault,"off"))
 	autoScale = cloneString(manualString);
     else
 	{
-	if (isCustomTrack(tdb->tableName))
+	if (isCustomTrack(tdb->track))
 	    // backwards defaults for custom tracks, autoScale on
 	    autoScale = wigCheckBinaryOption(tdb,notDefault,Default,
 		AUTOSCALEDEFAULT, AUTOSCALE);
 	else