#include <list>
#include <vector>
#include <string>
-#include <fstream.h>
+#include <fstream>
#include <stdlib.h>
#include <algorithm>
// Sequence data class
+using namespace std;
+
+struct annot
+{
+ int start, end;
+ string name, type;
+};
+
class Sequence
{
friend class ConnView;
string species;
int species_num;
- struct annot
- {
- int start, end;
- string name, type;
- };
list<annot> annots;
public:
Sequence();
- void load_fasta(string file_path, int seq_num);
+ void load_fasta(string file_path, int seq_num,
+ int start_index, int end_index);
void load_annot(string file_path);
string seq();
const char * c_seq();
int len();
string hdr();
void set_seq(string a_seq);
+ list<int> find_motif(string a_motif);
// string species();
void clear();
+ void save(fstream &save_file);
+ void load_museq(string load_file_path, int seq_num);
};