8 #include "rabundvector.hpp"
9 #include "sabundvector.hpp"
10 #include "listvector.hpp"
16 class SharedListVector;
30 static GlobalData* getInstance();
31 ListVector* gListVector;
32 SparseMatrix* gSparseMatrix;
37 SharedListVector* gSharedList;
43 SequenceDB* gSequenceDB;
44 string inputFileName, helpRequest, commandName, vertical;
46 vector<string> Estimators, Groups; //holds estimators to be used
47 set<int> lines; //hold lines to be used
48 set<string> labels; //holds labels to be used
49 vector<string> Treenames;
51 string getPhylipFile();
52 string getColumnFile();
54 string getRabundFile();
55 string getSabundFile();
57 string getGroupFile();
58 string getOrderFile();
59 string getFastaFile();
60 string getNexusFile();
61 string getClustalFile();
63 string getSharedFile();
66 string getPrecision();
73 string getRandomTree();
79 string getProcessors();
89 void setListFile(string);
90 void setPhylipFile(string);
91 void setColumnFile(string);
92 void setNameFile(string);
93 void setRabundFile(string);
94 void setSabundFile(string);
95 void setFormat(string);
96 void setRandomTree(string);
97 void setGroups(string);
100 void setProcessors(string);
106 void parseGlobalData(string, string);
108 void parseTreeFile(); //parses through tree file to find names of nodes and number of them
109 //this is required in case user has sequences in the names file that are
110 //not included in the tree.
111 //only takes names from the first tree in the tree file and assumes that all trees use the same names.
116 string phylipfile, columnfile, listfile, rabundfile, sabundfile, namefile, groupfile, orderfile, fastafile, nexusfile, clustalfile, treefile, sharedfile, line, label, randomtree, groups;
117 string cutoff, format, precision, method, fileroot, iters, jumble, freq, calc, abund, step, form, sorted, trump, soft, filter, scale, ends, processors;
120 static GlobalData* _uniqueInstance;
121 GlobalData( const GlobalData& ); // Disable copy constructor
122 void operator=( const GlobalData& ); // Disable assignment operator
125 void reset(); //clears all non filename parameters
126 void readTreeString(ifstream&);