ea5b4301814c1df9f2a0f3b2d9e0d2f06b22635e braney Tue May 24 18:37:10 2016 -0700 hgTables support , some display changes, and a better hgc page for longTabix diff --git src/hg/hgTables/hgTables.h src/hg/hgTables/hgTables.h index 7eb4235..dfadd07 100644 --- src/hg/hgTables/hgTables.h +++ src/hg/hgTables/hgTables.h @@ -785,30 +785,53 @@ struct sqlFieldType *sqlFieldTypesFromAs(struct asObject *as); /* Convert asObject to list of sqlFieldTypes */ /* HAL stuff from hal.c */ boolean isHalTable(char *table); /* Return TRUE if table corresponds to a HAL file. */ struct slName *halGetFields(char *table); /* Get fields of hal as simple name list. */ void halTabOut(char *db, char *table, struct sqlConnection *conn, char *fields, FILE *f); /* BAM stuff from bam.c */ +boolean isLongTabixTable(char *table); +/* Return TRUE if table corresponds to a longTabix file. */ + +struct slName *getLongTabixFields(); +/* Get fields of bam as simple name list. */ + +void longTabixTabOut(char *db, char *table, struct sqlConnection *conn, char *fields, FILE *f); +/* Print out selected fields from long tabix. If fields is NULL, then print out all fields. */ + +struct hTableInfo *longTabixToHti(char *table); +/* Get standard fields of BAM into hti structure. */ + +struct bed *longTabixGetFilteredBedsOnRegions(struct sqlConnection *conn, + char *db, char *table, struct region *regionList, struct lm *lm, + int *retFieldCount); +/* Get list of beds from long tabix, in all regions, that pass filtering. */ + +struct sqlFieldType *longTabixListFieldsAndTypes(); +/* Get fields of BAM as list of sqlFieldType. */ + +void showSchemaLongTabix(char *table, struct trackDb *tdb); +/* Show schema on long tabix. */ + boolean isBamTable(char *table); /* Return TRUE if table corresponds to a BAM file. */ struct slName *bamGetFields(); /* Get fields of bam as simple name list. */ struct sqlFieldType *bamListFieldsAndTypes(); /* Get fields of BAM as list of sqlFieldType. */ struct hTableInfo *bamToHti(char *table); /* Get standard fields of BAM into hti structure. */ void showSchemaBam(char *table, struct trackDb *tdb); /* Show schema on bam. */