1862a57500c11c5df4f811013d0dfcafbc371d5d hiram Thu Apr 18 15:51:23 2019 -0700 add note to get wiggle data table output done correctly refs #18869 diff --git src/hg/hubApi/getData.c src/hg/hubApi/getData.c index 90a2fc1..d4940ef 100644 --- src/hg/hubApi/getData.c +++ src/hg/hubApi/getData.c @@ -118,30 +118,34 @@ char *chrom, unsigned start, unsigned end) /* output the SQL table data for given track */ { /* for MySQL select statements, name for 'chrom' 'start' 'end' to use * for a table which has different names than that */ char chromName[256]; char startName[256]; char endName[256]; /* defaults, normal stuff */ safef(chromName, sizeof(chromName), "chrom"); safef(startName, sizeof(startName), "chromStart"); safef(endName, sizeof(endName), "chromEnd"); +/* XXX - need to add wiggle data table processing here to output the + * the data points instead of what it does now: the wig SQL table + */ + /* 'track' name in trackDb often refers to a SQL 'table' */ char *sqlTable = cloneString(track); /* might have a specific table defined instead of the track name */ char *tableName = trackDbSetting(tdb, "table"); if (isNotEmpty(tableName)) { freeMem(sqlTable); sqlTable = cloneString(tableName); jsonWriteString(jw, "sqlTable", sqlTable); } /* to be determined if this name is used or changes */ char *splitSqlTable = cloneString(sqlTable); /* this function knows how to deal with split chromosomes, the NULL