5e88a1196c6be3d47f925d8d31e401ef0a65c1fc braney Fri Nov 10 14:40:51 2017 -0800 add support for bigNarrowPeak in hubs and custom tracks diff --git src/hg/hgTables/hgTables.c src/hg/hgTables/hgTables.c index 8efe5e7..d3c7dbf 100644 --- src/hg/hgTables/hgTables.c +++ src/hg/hgTables/hgTables.c @@ -571,31 +571,32 @@ else { char buf[256]; safef(buf, sizeof(buf), "%s_%s", chrom, table); return cloneString(buf); } } } struct hTableInfo *hubTrackTableInfo(struct trackDb *tdb) /* Given trackDb entry for a hub track, wrap table info around it. */ { struct hTableInfo *hti = NULL; if (tdb->subtracks == NULL) { - if (startsWithWord("bigBed", tdb->type) || startsWithWord("bigGenePred", tdb->type)) + if (startsWithWord("bigBed", tdb->type) || startsWithWord("bigGenePred", tdb->type) || + startsWithWord("bigNarrowPeak", tdb->type)) hti = bigBedToHti(tdb->table, NULL); else if (startsWithWord("longTabix", tdb->type)) hti = longTabixToHti(tdb->table); else if (startsWithWord("bam", tdb->type)) hti = bamToHti(tdb->table); else if (startsWithWord("vcfTabix", tdb->type)) hti = vcfToHti(tdb->table, TRUE); } if (hti == NULL) { AllocVar(hti); hti->rootName = cloneString(tdb->track); hti->isPos = TRUE; hti->type = cloneString(tdb->type); }