7808c7b8585e5ebcf7de5f65db5ade383d1799c2
braney
  Fri Apr 6 11:36:45 2012 -0700
fix #7505 by adding a track handler for the pesky broken track
diff --git src/hg/hgTracks/bedTrack.c src/hg/hgTracks/bedTrack.c
index a7ea670..46aee31 100644
--- src/hg/hgTracks/bedTrack.c
+++ src/hg/hgTracks/bedTrack.c
@@ -638,30 +638,37 @@
 tg->drawItemAt = bedDrawSimpleAt;
 tg->itemName = bedName;
 tg->mapItemName = bedName;
 tg->totalHeight = tgFixedTotalHeightNoOverflow;
 tg->itemHeight = tgFixedItemHeight;
 tg->itemStart = bedItemStart;
 tg->itemEnd = bedItemEnd;
 // Adding "tg->nextPrevExon = simpleBedNextPrevEdge;" opened a can of worms: too many
 // bed-based tracks have their own drawItems methods that don't hook into nextItem stuff,
 // or drawItemAt methods that draw mapboxes but tg->mapsSelf is not set...
 // So, set tg->nextPrevExon = simpleBedNextPrevEdge case-by-case.
 tg->nextPrevItem = linkedFeaturesLabelNextPrevItem;
 tg->freeItems = freeSimpleBed;
 }
 
+void bed9Methods(struct track *tg)
+/* Fill in methods for bed9 tracks. */
+{
+linkedFeaturesMethods(tg);
+tg->loadItems = loadBed9;
+}
+
 void addSimpleFeatures(struct simpleFeature **pSfList, int start, int end, int qStart, boolean  everyBase)
 /* Add simple features from start to end to the list.
  * qStart is the offset in the query.
  * If everyBase is TRUE then add a simpleFeature for every base in the start,end region */
 {
 int s;
 struct simpleFeature *sf;
 int stepSize = everyBase ? 1 : end - start;
 for (s = start ; s < end ; s += stepSize)
     {
     AllocVar(sf);
     sf->start = s;
     sf->end = sf->start + stepSize;
     sf->qStart = qStart + (s - start);
     sf->qEnd = sf->qStart + stepSize;