ebb119f63d024ea706a6922adf67bb9956d5f049 kate Tue Sep 3 16:33:52 2019 -0700 More fixes for multi-region (cross-chrom and non-cluster mode). refs #22422 diff --git src/hg/hgc/interactClick.c src/hg/hgc/interactClick.c index 92b75e9..772c9ed 100644 --- src/hg/hgc/interactClick.c +++ src/hg/hgc/interactClick.c @@ -153,31 +153,31 @@ *retStart = minStart; *retEnd = maxEnd; // consider sorting on score or position return filtered; } static char *makeInteractRegionFile(char *name, struct interact *inters) /* Create bed file in trash directory with end coordinates for multi-region mode */ { struct tempName mrTn; trashDirFile(&mrTn, "hgt", "custRgn_interact", ".bed"); FILE *f = fopen(mrTn.forCgi, "w"); if (f == NULL) errAbort("can't create temp file %s", mrTn.forCgi); char regionInfo[1024]; -int padd +int padding = 200; safef(regionInfo, sizeof regionInfo, "#padding %d\n", padding); mustWrite(f, regionInfo, strlen(regionInfo)); //warn("%s", regionInfo); safef(regionInfo, sizeof regionInfo, "#shortDesc %s\n", name); mustWrite(f, regionInfo, strlen(regionInfo)); //warn("%s", regionInfo); struct interact *inter = NULL; struct bed *region, *regions = NULL; struct hash *uniqRegions = hashNew(0); for (inter = inters; inter != NULL; inter = inter->next) { char buf[256]; //safef(buf, sizeof buf, "%s:%d-%d", region1->chrom, region1->chromStart, region1->chromEnd);