b9d0da564a59df8c6aac4f4e28d391edcade591c braney Wed Apr 12 14:17:46 2017 -0700 add support for 64-bit indices to twoBitMask diff --git src/inc/twoBit.h src/inc/twoBit.h index 8658c5a..83d4534 100644 --- src/inc/twoBit.h +++ src/inc/twoBit.h @@ -67,30 +67,34 @@ { char *fileName; /* path to file */ struct twoBitSeqSpec *seqs; /* list of sequences and subsequences */ }; struct twoBitSeqSpec /* specification for a seq or subsequence in a .2bit file */ { struct twoBitSeqSpec *next; char *name; /* name of sequence */ bits32 start; /* start of subsequence 0 */ bits32 end; /* end of subsequence; * 0 if not a subsequence */ }; +struct twoBit *twoBitFromOpenFile(struct twoBitFile *tbf); +/* Read in header and index. + * Squawk and die if there is a problem. */ + struct twoBitFile *twoBitOpen(char *fileName); /* Open file, read in header and index. * Squawk and die if there is a problem. */ struct twoBitFile *twoBitOpenExternalBptIndex(char *twoBitName, char *bptName); /* Open file, read in header, but not regular index. Instead use * bpt index. Beware if you use this the indexList field will be NULL * as will the hash. */ void twoBitClose(struct twoBitFile **pTbf); /* Free up resources associated with twoBitFile. */ int twoBitSeqSize(struct twoBitFile *tbf, char *name); /* Return size of sequence in two bit file in bases. */