20#include <boost/iostreams/filtering_stream.hpp>
21#include <boost/iostreams/filter/gzip.hpp>
22#include <boost/iostreams/copy.hpp>
25#define GBMAXLINELEN 40000
27enum FileType {unknown, genbank, fasta};
56 bool complete_l, complete_r;
62 complete_l = complete_r=
true;
65 bool checkRange(
int len);
66 bool operator<(
const GBFeature &other)
const{
67 return (begin<other.begin || (begin==other.begin && end<other.end));
116 void determineFileType();
119 void clear() {sin.clear(); sin.str(
""); ifstrm.close();}
126 std::stringstream sin;
144 FileType fileType() {
166 char* getJoin(
const char* pos, Strand &strand,
char *& genename );
Exception class for the GenBank classes.
Definition genbank.hh:34
GBError(string msg)
Definition genbank.hh:41
a genbank feature entry (e.g. CDS, mRNA, TATA_signal)
Definition genbank.hh:49
A GenBank data processor.
Definition genbank.hh:137
Gene * getGene(GBPositions *pos)
A GenBank database splitter.
Definition genbank.hh:112
A genbank data structure with the information about a gene.
Definition genbank.hh:83
list< char * > mRNAentry
A list of pointers in 'buffer' on the "mRNA" positions.
Definition genbank.hh:94
int length
The 'buffer' length.
Definition genbank.hh:89
char * seqbegin
Pointer in 'buffer' on the "ORIGIN" position.
Definition genbank.hh:87
char * buffer
The entire information in GenBank format.
Definition genbank.hh:85
list< char * > CDSentry
A list of pointers in 'buffer' on the "CDS" positions.
Definition genbank.hh:92