boolean isBigWigTable(char *table) /* Return TRUE if table corresponds to a bigWig file. */ { struct trackDb *tdb = hashFindVal(fullTableToTdbHash, table); if (tdb) return tdbIsBigWig(tdb); else return trackIsType(database, table, curTrack, "bigWig", ctLookupName); }
boolean isHalTable(char *table) /* Return TRUE if table corresponds to a HAL file. */ { if (isHubTrack(table)) { struct trackDb *tdb = hashFindVal(fullTableToTdbHash, table); return startsWithWord("halSnake", tdb->type); } else return trackIsType(database, table, curTrack, "halSnake", ctLookupName); }
boolean isVcfTable(char *table, boolean *retIsTabix) /* Return TRUE if table corresponds to a VCF file. * If retIsTabix is non-NULL, set *retIsTabix to TRUE if this is vcfTabix (not just vcf). */ { boolean isVcfTabix = FALSE, isVcf = FALSE; struct trackDb *tdb = hashFindVal(fullTableToTdbHash, table); if (tdb) { isVcfTabix = startsWithWord("vcfTabix", tdb->type); isVcf = startsWithWord("vcf", tdb->type); } else { isVcfTabix = trackIsType(database, table, curTrack, "vcfTabix", ctLookupName); if (!isVcfTabix) isVcf = trackIsType(database, table, curTrack, "vcf", ctLookupName); } if (retIsTabix) *retIsTabix = isVcfTabix; return (isVcfTabix || isVcf); }
boolean isBedGraph(char *table) /* Return TRUE if table is specified as a bedGraph in the current database's * trackDb. */ { return trackIsType(database, table, NULL, "bedGraph", ctLookupName); }