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/hg/inc/interact.h src/hg/inc/interact.h index 58e8983..b682fbe 100644 --- src/hg/inc/interact.h +++ src/hg/inc/interact.h @@ -90,30 +90,34 @@ /* Print out interact as a comma separated list including final comma. */ /* -------------------------------- End autoSql Generated Code -------------------------------- */ struct asObject *interactAsObj(); /* Return asObject describing fields of barChart database table (includes bin) */ struct interact *interactLoadAndValidate(char **row); /* Load a interact from row fetched with select * from interact * from database, validating fields. Dispose of this with interactFree(). */ struct interact *interactLoadAllAndValidate(char *fileName); /* Load all interact from a whitespace-separated file. * Dispose of this with interactFreeList(). */ +void interactOutputCustom(struct interact *el, FILE *f, char sep, char lastSep); +/* Print out interact. Separate fields with sep. Follow last field with lastSep. + * Differs from auto-gen'ed by printing rgb color */ + void interactFixRange(struct interact *inter); /* Set values for chromStart/chromEnd based on source and target start/ends */ char *interactOtherChrom(struct interact *inter); /* Get other chromosome from an interaaction. Return NULL if same chromosome */ int interactRegionCenter(int start, int end); /* Return genomic location of center of region */ int interactRegionDistance(struct interact *inter); /* Return distance between region midpoints. Return -1 for other chromosome */ int interactDistanceCmp(const void *va, const void *vb); /* Compare based on distance between region midpoints */