c1e66c5c9d45f0965156318e2782714ee93b04ab braney Mon Oct 19 16:08:32 2015 -0700 more work on bigMaf. Works in hgc and hgTables now. #15935 diff --git src/hg/lib/hdb.c src/hg/lib/hdb.c index 62b62c7..df4541e 100644 --- src/hg/lib/hdb.c +++ src/hg/lib/hdb.c @@ -5235,31 +5235,32 @@ * If this is a custom track, pass in function ctLookupName(table) which looks up a * custom track by name, otherwise pass NULL */ { char *tdbType = findTypeForTable(database, parent, table, ctLookupName); return (tdbType && startsWithWord(type, tdbType)); } boolean hIsBigBed(char *database, char *table, struct trackDb *parent, struct customTrack *(*ctLookupName)(char *table)) /* Return TRUE if table corresponds to a bigBed file. * if table has no parent trackDb pass NULL for parent * If this is a custom track, pass in function ctLookupName(table) which looks up a * custom track by name, otherwise pass NULL */ { -return trackIsType(database, table, parent, "bigBed", ctLookupName); +return trackIsType(database, table, parent, "bigBed", ctLookupName) || + trackIsType(database, table, parent, "bigMaf", ctLookupName); } static char *bbiNameFromTableChrom(struct sqlConnection *conn, char *table, char *seqName) /* Return file name from table. If table has a seqName column, then grab the * row associated with chrom (which can be e.g. '1' not 'chr1' if that is the * case in the big remote file), or return NULL if there's no file for that particular * chrom (like a random or hap). */ { boolean checkSeqName = (sqlFieldIndex(conn, table, "seqName") >= 0); if (checkSeqName && seqName == NULL) errAbort("bbiNameFromTableChrom: table %s has seqName column, but NULL seqName passed in", table); char query[512]; if (checkSeqName) sqlSafef(query, sizeof(query), "select fileName from %s where seqName = '%s'",