97052b54a39bd15ffd0f610bdb16ccd0ea65ca53 angie Mon Jun 10 14:37:22 2013 -0700 Added a chunked-query mode to annoStreamDb, similar to that of annoStreamBigBed,so that we can quickly drain sqlResults from smaller queries instead of keeping a genome-wide sqlResult open for the whole time we're processing -- that was making mysql have mysterious hangs on hgwdev. (http://bugs.mysql.com/bug.php?id=50399) diff --git src/inc/annoAssembly.h src/inc/annoAssembly.h index dde5d02..b5e1120 100644 --- src/inc/annoAssembly.h +++ src/inc/annoAssembly.h @@ -1,24 +1,28 @@ /* annoAssembly -- basic metadata about an assembly for the annoGrator framework. */ #ifndef ANNOASSEMBLY_H #define ANNOASSEMBLY_H #include "common.h" struct annoAssembly /* Basic information about a genome assembly. */ { char *name; // UCSC symbolic name for assembly, e.g. "hg19" struct twoBitFile *tbf; // Opened twoBit sequence file for assembly + char *twoBitPath; // twoBit file name }; struct annoAssembly *annoAssemblyNew(char *name, char *twoBitPath); /* Return an annoAssembly with open twoBitFile. */ +struct slName *annoAssemblySeqNames(struct annoAssembly *aa); +/* Return a list of sequence names in this assembly. */ + uint annoAssemblySeqSize(struct annoAssembly *aa, char *seqName); /* Return the number of bases in seq which must be in aa's twoBitFile. */ void annoAssemblyClose(struct annoAssembly **pAa); /* Close aa's twoBitFile and free mem. */ #endif//ndef ANNOASSEMBLY_H