src/hg/hgTables/seqOut.c 1.23

1.23 2009/05/20 20:59:56 mikep
Libified findTdbForTable, findTypeForTable, trackIsType, hIsBigBed from hgTables so that other code can easily determine if a track is a bigBed.
Index: src/hg/hgTables/seqOut.c
===================================================================
RCS file: /projects/compbio/cvsroot/kent/src/hg/hgTables/seqOut.c,v
retrieving revision 1.22
retrieving revision 1.23
diff -b -B -U 4 -r1.22 -r1.23
--- src/hg/hgTables/seqOut.c	16 Apr 2009 18:20:40 -0000	1.22
+++ src/hg/hgTables/seqOut.c	20 May 2009 20:59:56 -0000	1.23
@@ -178,9 +178,9 @@
         doRefGeneMrnaSequence(conn, bedList);
     }
 else
     {
-    char *dupType = cloneString(findTypeForTable(database, curTrack, curTable));
+    char *dupType = cloneString(findTypeForTable(database, curTrack, curTable, ctLookupName));
     typeWordCount = chopLine(dupType, typeWords);
     if (typeIx >= typeWordCount)
 	internalErr();
     table = typeWords[typeIx];
@@ -299,9 +299,9 @@
 
 void doOutSequence(struct sqlConnection *conn)
 /* Output sequence page. */
 {
-struct trackDb *tdb = findTdbForTable(database, curTrack, curTable);
+struct trackDb *tdb = findTdbForTable(database, curTrack, curTable, ctLookupName);
 if (tdb != NULL && startsWith("genePred", tdb->type))
     genePredOptions(tdb, curTrack->type, conn);
 else
     genomicFormatPage(conn);