e5606b4f483bd08425af83b289ab4c3937b333da kate Thu Sep 20 13:11:03 2018 -0700 Finishing touches on geneHancer track. Includes tool to fix incorrect ranges. refs #22048 diff --git src/inc/basicBed.h src/inc/basicBed.h index 44655f6..355531b 100644 --- src/inc/basicBed.h +++ src/inc/basicBed.h @@ -263,30 +263,33 @@ struct hash *readBedToBinKeeper(char *sizeFileName, char *bedFileName, int wordCount); /* Read a list of beds and return results in hash of binKeeper structure for fast query * See also bedsIntoKeeperHash, which takes the beds read into a list already, but * dispenses with the need for the sizeFile. */ int bedParseRgb(char *itemRgb); /* parse a string: "r,g,b" into three unsigned char values returned as 24 bit number, or -1 for failure */ int bedParseColor(char *colorSpec); /* Parse an HTML color string, a string of 3 comma-sep unsigned color values 0-255, * or a 6-digit hex string preceded by #. * O/w return unsigned integer value. Return -1 on error */ +void bedOutputRgb(FILE *f, unsigned int color); +/* Output a string: "r,g,b" for 24 bit number */ + long long bedTotalSize(struct bed *bedList); /* Add together sizes of all beds in list. */ int bedSameStrandOverlap(struct bed *a, struct bed *b); /* Return amount of block-level overlap on same strand between a and b */ boolean bedExactMatch(struct bed *oldBed, struct bed *newBed); /* Return TRUE if it's an exact match. */ boolean bedCompatibleExtension(struct bed *oldBed, struct bed *newBed); /* Return TRUE if newBed is a compatible extension of oldBed, meaning * all internal exons and all introns of old bed are contained, in the * same order in the new bed. */ struct rbTree *bedToRangeTree(struct bed *bed);