ebf4f38a245ebd15ee91e7cbb2110acd9bbad7f2 max Sun Mar 25 14:06:03 2012 -0700 temporary hack to pubs track name/type confusion, need to find better solution diff --git src/hg/hgTracks/simpleTracks.c src/hg/hgTracks/simpleTracks.c index 527814d..ed90237 100644 --- src/hg/hgTracks/simpleTracks.c +++ src/hg/hgTracks/simpleTracks.c @@ -12531,35 +12531,36 @@ return; wordCount = chopLine(cloneString(typeLine), words); if (wordCount <= 0) return; type = words[0]; #ifndef GBROWSE if (sameWord(type, "bed")) { complexBedMethods(track, tdb, FALSE, wordCount, words); /* bed.h includes genePred.h so should be able to use these trackDb settings. */ if (trackDbSetting(track->tdb, GENEPRED_CLASS_TBL) !=NULL) track->itemColor = genePredItemClassColor; - // XX this might not be the right place / right way to set methods here - // XX should I introduce a track type ? (MaxH) - if (trackDbSettingClosestToHome(track->tdb, "pubsMarkerTable") !=NULL) + // XX MaxH: this works as a temp hack, but it is not the right way to do it + // XX should I introduce several new track types ? + // XX or rather additional trackDb statements, one per pubs-"track type" ? + if (startsWith("pubs", track->track) && stringIn("Marker", track->track)) pubsMarkerMethods(track); - if (trackDbSettingClosestToHome(track->tdb, "pubsSequenceTable") !=NULL) + if (startsWith("pubs", track->track) && stringIn("Blat", track->track)) pubsBlatMethods(track); } /* else if (sameWord(type, "bedLogR")) { wordCount++; words[1] = "9"; complexBedMethods(track, tdb, FALSE, wordCount, words); //track->bedSize = 10; } */ else if (sameWord(type, "bigBed")) { bigBedMethods(track, tdb, wordCount, words); if (trackShouldUseAjaxRetrieval(track))