]> git.donarmstrong.com Git - mothur.git/blobdiff - fastamap.h
This is v.1.4.0
[mothur.git] / fastamap.h
index 6051874e3f6802cf0234945502749ad35f474e4f..e628aedbc460af82c19fd1b124dec5235b421c2e 100644 (file)
@@ -25,29 +25,23 @@ public:
        ~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, sequence
        int sizeUnique();                                       //returns number of unique sequences
-       void printNamesFile(ostream&);          //produces a 2 column file with the groupname in the first column and the names in the second column - a names file.
-       void printCondensedFasta(ostream&);             //produces a fasta file.
-       void readFastaFile(ifstream&);
+       void printNamesFile(string);            //produces a 2 column file with the groupname in the first column and the names in the second column - a names file.
+       void printCondensedFasta(string);               //produces a fasta file.
+       void readFastaFile(string);
+       void readFastaFile(string, string);
        string getSequence(string);             //pass it a name of a sequence, it returns the sequence.
 
 private:
        struct group {
                string groupname;                                       //the group name for identical sequences, will be set to the first sequence found.
-               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, groupinfo        - condensed representation of file
        map<string, string>  seqmap;  //name, sequence  -  uncondensed representation of file
-       map<string, group>::iterator it;
-       map<string, string>::iterator it2;
-       
-       string readName(ifstream&);
-       string readSequence(ifstream&);
 };
 
 #endif