be4311c07e14feb728abc6425ee606ffaa611a58 markd Fri Jan 22 06:46:58 2021 -0800 merge with master diff --git src/hg/lib/customTrack.c src/hg/lib/customTrack.c index d3ed8a1..c844aec 100644 --- src/hg/lib/customTrack.c +++ src/hg/lib/customTrack.c @@ -655,30 +655,32 @@ char* customTrackTypeFromBigFile(char *url) /* return most likely type for a big file name or NULL, * has to be freed. */ { // pull out file part from the URL, strip off the query part after "?" char fileName[2000]; safecpy(fileName, sizeof(fileName), url); chopSuffixAt(fileName, '?'); // based on udc cache dir analysis by hiram in rm #12813 if (endsWith(fileName, ".bb") || endsWith(fileName, ".bigBed") || endsWith(fileName, ".bigbed")) return cloneString("bigBed"); if (endsWith(fileName, ".bw") || endsWith(fileName, ".bigWig") || endsWith(fileName, ".bigwig") || endsWith(fileName, ".bwig")) return cloneString("bigWig"); +if (endsWith(fileName, ".inter.bb") || endsWith(fileName, ".inter.bigBed")) + return cloneString("bigInteract"); if (endsWith(fileName, ".bam") || endsWith(fileName, ".cram")) return cloneString("bam"); if (endsWith(fileName, ".vcf.gz")) return cloneString("vcfTabix"); if (endsWith(fileName, ".vcf")) return cloneString("vcf"); return NULL; } boolean customTrackIsBigData(char *fileName) /* Return TRUE if fileName has a suffix that we recognize as a bigDataUrl track type. */ { char *fileNameDecoded = cloneString(fileName); cgiDecode(fileName, fileNameDecoded, strlen(fileName));