6546198dd3ce4f12b81225c5093163f3a176b5e3 angie Tue Mar 13 14:17:15 2018 -0700 Adding twoBitSeqWindow{New,Free} for seqWindow on 2bit files. diff --git src/hg/inc/seqWindow.h src/hg/inc/seqWindow.h index 427f828..5e13662 100644 --- src/hg/inc/seqWindow.h +++ src/hg/inc/seqWindow.h @@ -38,16 +38,24 @@ struct seqWindow *chromSeqWindowNew(char *db, char *chrom, uint start, uint end); /* Return a new seqWindow that can fetch uppercase sequence from the chrom sequences in db. * If chrom is non-NULL and end > start then load sequence from that range; if chrom is non-NULL * and start == end == 0 then fetch entire chrom. */ void chromSeqWindowFree(struct seqWindow **pSw); /* Free a seqWindow that was created by chromSeqWindowNew. */ struct seqWindow *memSeqWindowNew(char *acc, char *seq); /* Return a new seqWindow copying this sequence already in memory. */ void memSeqWindowFree(struct seqWindow **pSw); /* Free a seqWindow that was created by memSeqWindowNew. */ +struct seqWindow *twoBitSeqWindowNew(char *twoBitFileName, char *chrom, uint start, uint end); +/* Return a new seqWindow that can fetch uppercase sequence from twoBitFileName. + * If chrom is non-NULL and end > start then load sequence from that range; if chrom is non-NULL + * and start == end == 0 then fetch entire chrom. */ + +void twoBitSeqWindowFree(struct seqWindow **pSw); +/* Free a seqWindow that was created by twoBitSeqWindowNew. */ + #endif /* SEQWINDOW2_H */