65490776b922ad5a6ba63214bc015c3f61c5fad2 jcasper Wed Jun 12 14:56:14 2019 -0700 Adding custom track support for hic plus a couple cosmetic changes, refs #18842 diff --git src/hg/hgTracks/hicTrack.c src/hg/hgTracks/hicTrack.c index 0dae825..64e4246 100644 --- src/hg/hgTracks/hicTrack.c +++ src/hg/hgTracks/hicTrack.c @@ -482,31 +482,31 @@ drawHicArc(tg, seqStart, seqEnd, hvg, xOff, yOff, width, font, color, vis); else warn ("Unknown draw mode %s for track %s", drawMode, tg->track); } void doLeftLabelsExceptNot(struct track *tg, int seqStart, int seqEnd, struct hvGfx *hvg, int xOff, int yOff, int width, int height, boolean withCenterLabels, MgFont *font, Color color, enum trackVisibility vis) /* A no-op function. There are no left labels associated with this track type. */ { return; } void hicMethods(struct track *tg) -/* Interact track type methods */ +/* Hi-C track type methods */ { tg->bedSize = 12; tg->loadItems = hicLoadItems; tg->drawItems = hicDrawItems; tg->totalHeight = hicTotalHeight; tg->drawLeftLabels = doLeftLabelsExceptNot; // If we don't pretend to do it ourselves, hgTracks tries and fails badly tg->mapsSelf = 1; } void hicCtMethods(struct track *tg) -/* Interact track methods for custom track */ +/* Hi-C track methods for custom track */ { hicMethods(tg); }