7 #include "rabundvector.hpp"
8 #include "sabundvector.hpp"
9 #include "listvector.hpp"
12 class SharedListVector;
26 static GlobalData* getInstance();
27 ListVector* gListVector;
28 SparseMatrix* gSparseMatrix;
33 SharedListVector* gSharedList;
39 SequenceDB* gSequenceDB;
40 string inputFileName, helpRequest, commandName, vertical, argv;
42 vector<string> Estimators, Groups; //holds estimators to be used
43 set<int> lines; //hold lines to be used
44 set<string> labels; //holds labels to be used
45 vector<string> Treenames;
47 string getPhylipFile();
48 string getColumnFile();
50 string getRabundFile();
51 string getSabundFile();
53 string getGroupFile();
54 string getOrderFile();
55 string getFastaFile();
57 string getSharedFile();
60 string getPrecision();
67 string getRandomTree();
72 string getCountEnds();
73 string getProcessors();
75 string getCandidateFile();
82 string getGapextend();
91 string getMaxHomoPolymer();
92 string getMinLength();
93 string getMaxLength();
95 void setListFile(string);
96 void setGroupFile(string file);
97 void setPhylipFile(string);
98 void setColumnFile(string);
99 void setNameFile(string);
100 void setRabundFile(string);
101 void setSabundFile(string);
102 void setSharedFile(string);
103 void setFormat(string);
104 void setRandomTree(string);
105 void setGroups(string);
106 void setCalc(string);
107 void setCountEnds(string);
108 void setProcessors(string);
114 void parseGlobalData(string, string);
116 void parseTreeFile(); //parses through tree file to find names of nodes and number of them
117 //this is required in case user has sequences in the names file that are
118 //not included in the tree.
119 //only takes names from the first tree in the tree file and assumes that all trees use the same names.
124 string phylipfile, columnfile, listfile, rabundfile, sabundfile, namefile, groupfile, orderfile, fastafile, treefile, sharedfile, line, label, randomtree, groups, cutoff, format, precision, method, fileroot, iters, jumble, freq, calc, abund, step, form, sorted, trump, soft, hard, scale, countends, processors, candidatefile, search, ksize, align, match, size, mismatch, gapopen, gapextend, minLength, maxLength, startPos, endPos, maxAmbig, maxHomoPolymer;
127 static GlobalData* _uniqueInstance;
128 GlobalData( const GlobalData& ); // Disable copy constructor
129 void operator=( const GlobalData& ); // Disable assignment operator
132 void reset(); //clears all non filename parameters
133 void readTreeString(ifstream&);