7a89988d6fd56140fd0b43c0f60430a210c24570 braney Thu May 19 16:41:30 2016 -0700 connecting things up for the long-range interaction display. diff --git src/hg/inc/longRange.h src/hg/inc/longRange.h new file mode 100644 index 0000000..d922c25 --- /dev/null +++ src/hg/inc/longRange.h @@ -0,0 +1,41 @@ +/* longRange - Long Range Interaction Format functions */ + +/* Copyright (C) 2013 The Regents of the University of California + * See README in this or parent directory for licensing information. */ +#ifndef LONGRANGE_H +#define LONGRANGE_H + +#include "common.h" +#include "cheapcgi.h" +#include "cart.h" +#include "trackDb.h" +#include "bed.h" + +#define LONG_HEIGHT "height" +#define LONG_DEFHEIGHT "200" +#define LONG_MINSCORE "minScore" +#define LONG_DEFMINSCORE "0" + +struct longRange +{ +struct longRange *next; +char *name; +unsigned s; +unsigned sw; +int sOrient; +char *sChrom; +unsigned e; +unsigned ew; +int eOrient; +char *eChrom; +unsigned height; +double score; +unsigned id; +}; + +void longRangeCfgUi(struct cart *cart, struct trackDb *tdb, char *name, char *title, boolean boxed); +/* Complete track controls for long range interaction. */ + +struct longRange *parseLongTabix(struct bed *beds, unsigned *maxWidth, double minScore); + +#endif//def LONGRANGE_H