7 * Created by Sarah Westcott on 12/1/08.
8 * Copyright 2008 Schloss Lab UMASS Amherst. All rights reserved.
13 #include "mothurout.h"
15 /* This class is a representation of the groupfile. It is used by all the shared commands to determine what group a
16 certain sequence belongs to. */
25 bool isValidGroup(string); //return true if string is a valid group
26 string getGroup(string);
27 void setGroup(string, string);
28 vector<string> namesOfGroups;
29 map<string, int> groupIndex; //groupname, vectorIndex in namesOfGroups. - used by collectdisplays and libshuff commands.
30 int getNumSeqs() { return groupmap.size(); }
31 vector<string> getNamesSeqs();
32 int getNumSeqs(string); //return the number of seqs in a given group
39 map<string, string>::iterator it;
40 void setNamesOfGroups(string);
41 map<string, string> groupmap; //sequence name and groupname
42 map<string, int> seqsPerGroup; //maps groupname to number of seqs in that group