cee60adf868375933ac0eb26e1b84048639e804f braney Fri Feb 24 11:07:54 2023 -0800 ongoing work on snakes diff --git src/hg/hgTracks/hgTracks.h src/hg/hgTracks/hgTracks.h index 7543030..b517639 100644 --- src/hg/hgTracks/hgTracks.h +++ src/hg/hgTracks/hgTracks.h @@ -924,30 +924,33 @@ 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. */ +int linkedFeaturesCmpScore(const void *va, const void *vb); +/* Help sort linkedFeatures by score (descending), then by starting pos. */ + int linkedFeaturesCmp(const void *va, const void *vb); /* Compare to sort based on chrom,chromStart. */ int linkedFeaturesCmpName(const void *va, const void *vb); /* Help sort linkedFeatures by name. */ 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. */