db44b993ec6123985aaae9aade94f329b0db49ec kate Sun Sep 23 21:03:19 2018 -0700 Add option to merge interactions for a single target, in pack and squish modes. Initial version for demo. refs #21917 diff --git src/hg/hgTracks/hgTracks.h src/hg/hgTracks/hgTracks.h index 8ad93a0..b987e00 100644 --- src/hg/hgTracks/hgTracks.h +++ src/hg/hgTracks/hgTracks.h @@ -873,30 +873,36 @@ void loadBed8(struct track *tg); /* Convert bed 8 info in window to linked feature. */ void loadBed9(struct track *tg); /* Convert bed 9 info in window to linked feature. (to handle itemRgb)*/ void loadGappedBed(struct track *tg); /* Convert bed info in window to linked feature. */ void linkedFeaturesFreeList(struct linkedFeatures **pList); /* Free up a linked features list. */ void freeLinkedFeaturesSeries(struct linkedFeaturesSeries **pList); /* Free up a linked features series list. */ +int simpleFeatureCmp(const void *va, const void *vb); +/* Compare to sort based on start. */ + +void linkedFeaturesSortAndBound(struct linkedFeatures *lf); +/* Sort simpleFeatures in the linkedFeature and set start and end based on simpleFetaures */ + int linkedFeaturesCmp(const void *va, const void *vb); /* Compare to sort based on chrom,chromStart. */ int linkedFeaturesCmpStart(const void *va, const void *vb); /* Help sort linkedFeatures by starting pos. */ void linkedFeaturesBoundsAndGrays(struct linkedFeatures *lf); /* Calculate beginning and end of lf from components, etc. */ int lfCalcGrayIx(struct linkedFeatures *lf); /* Calculate gray level from components. */ void linkedFeaturesDraw(struct track *tg, int seqStart, int seqEnd, struct hvGfx *hvg, int xOff, int yOff, int width, MgFont *font, Color color, enum trackVisibility vis);