a774bc0d5ae571159bc1a764fcabd26c877ac523 max Mon Apr 29 11:18:29 2024 -0700 adding file forgot in previous commit diff --git src/hg/hgTracks/hgTracks.h src/hg/hgTracks/hgTracks.h index 939bbec..ae1e98d 100644 --- src/hg/hgTracks/hgTracks.h +++ src/hg/hgTracks/hgTracks.h @@ -394,31 +394,31 @@ }; struct linkedFeatures /* A linked set of features - drawn as a bunch of boxes (often exons) * connected by horizontal lines (often introns). About 75% of * the browser tracks end up as linkedFeatures. */ { struct linkedFeatures *next; int start, end; /* Start/end in browser coordinates. */ int tallStart, tallEnd; /* Start/end of fat display. */ int grayIx; /* Average of components. */ int filterColor; /* Filter color (-1 for none) */ float score; /* score for this feature */ char *name; /* Accession of query seq. Usually also the label. */ int orientation; /* Orientation. */ - struct simpleFeature *components; /* List of component simple features. */ + struct simpleFeature *components; /* List of component simple features. Usually exons. */ struct simpleFeature *codons; /* If zoomed to CDS or codon level.*/ boolean useItemRgb; /* If true, use rgb from item. */ void *extra; /* Extra info that varies with type. */ void *original; /* The structure that was converted into this (when needed later). */ struct itemAttr *itemAttr; /* itemAttr object for this lf, or NULL */ unsigned highlightColor; /* highlight color,0 if no highlight */ enum highlightMode highlightMode; /* highlight mode,0 if no highlight */ char* mouseOver; /* mouse over text */ char* cds; /* CDS in NCBI format */ #ifdef USE_HAL boolean isHalSnake; struct hal_target_dupe_list_t *dupeList; #endif boolean isBigGenePred; @@ -1685,30 +1685,34 @@ void hicCtMethods(struct track *tg); /* Hi-C track methods for custom track */ void parentChildCartCleanup(struct track *trackList,struct cart *newCart,struct hash *oldVars); /* When composite/view settings changes, remove subtrack specific vis When superTrackChild is found and selected, shape superTrack to match. */ void dontLoadItems(struct track *tg); /* No-op loadItems when we aren't going to try. */ void filterItems(struct track *tg, boolean (*filter)(struct track *tg, void *item), char *filterType); /* Filter out items from track->itemList. */ +void filterItemsOnNames(struct track *tg); +/* Only keep items with a name in the .nameFilter cart var. + * Not using filterItems(), because filterItems has no state at all. */ + int gCmpPriority(const void *va, const void *vb); /* Compare groups based on priority. */ int tgCmpPriority(const void *va, const void *vb); /* Compare to sort based on priority; use shortLabel as secondary sort key. */ void printMenuBar(); /* Put up the menu bar. */ boolean winTooBigDoWiggle(struct cart *cart, struct track *tg); /* return true if we wiggle because the window size exceeds a certain threshold */ boolean checkIfWiggling(struct cart *cart, struct track *tg); /* Check to see if a track should be drawing as a wiggle. */ @@ -1819,17 +1823,20 @@ int recTrackSetsForDb(); /* Return number of recommended track sets for this database */ boolean hasRecTrackSet(struct cart *cart); /* Check if currently loaded session is in the recommended track set */ void printRecTrackSets(); /* Create dialog with list of recommended track sets */ Color colorFromSoTerm(enum soTerm term); /* Assign a Color according to soTerm: red for non-synonymous, green for synonymous, blue for * UTR/noncoding, black otherwise. */ void maybeNewFonts(struct hvGfx *hvg); /* Check to see if we want to use the alternate font engine (FreeType2). */ + +Color colorFromCart(struct track *tg, Color color); +/* Return the RGB color from the cart setting 'colorOverride' or just return color */ #endif /* HGTRACKS_H */