c43e813a238e650c17e8dee441653d9037a86e18 kate Sun Apr 15 21:51:04 2018 -0700 Fix problem with r,g,b color specs. Now also supports #RRGGBB anand 16 HTML color names. refs #21109 diff --git src/hg/inc/interact.h src/hg/inc/interact.h index 817326f..c45e14a 100644 --- src/hg/inc/interact.h +++ src/hg/inc/interact.h @@ -82,29 +82,33 @@ void interactOutput(struct interact *el, FILE *f, char sep, char lastSep); /* Print out interact. Separate fields with sep. Follow last field with lastSep. */ #define interactTabOut(el,f) interactOutput(el,f,'\t','\n'); /* Print out interact as a line in a tab-separated file. */ #define interactCommaOut(el,f) interactOutput(el,f,',',','); /* 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(). */ + 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 */ #endif /* INTERACT_H */