]> git.donarmstrong.com Git - mothur.git/blobdiff - fastamap.h
deconvolute command
[mothur.git] / fastamap.h
index bd262c4d0660671899d7d576327e3065051a04aa..fbda6aee6cd6b383da0d577f3d1b98d8ec1614e7 100644 (file)
@@ -23,26 +23,27 @@ class FastaMap  {
 
 public:
        FastaMap() {};
-       FastaMap(ifstream&);
        ~FastaMap() {};
        
        string getGroupName(string);  //pass a sequence name get its group
        int getGroupNumber(string);  //pass a sequence name get number of sequence in its group
        string getNames(string);        //pass a sequence get the string of names in the group separated by ','s.
        void push_back(string, string); //sequencename, groupname
+       void set(string, string, string); //sequencename, groupname, groupnumber, names.
        void clear();
        int size();                                     //returns number of unique sequences
        void print(ostream&);
+       void readFastaFile(ifstream&);
 
 private:
        struct group {
                string groupname;                                       //the group name for identical sequences, will be set to the first sequence found.
-               int groupnumber;                                        //the number of sequences in that group.
+               int groupnumber;                                        //the number of sequence names with the same sequence.
                string names;                                           //the names of the sequence separated by ','.
        };
 
-       map<string, group>  data;  //sequence, group
-       map<string, group>::iterator it;        
+       map<string, group>  data;  //sequence, groupinfo
+       map<string, group>::iterator it;
 };
 
 #endif
\ No newline at end of file