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 string getForwardMismatch();
96 string getReverseMismatch();
97 string getBarcodeMismatch();
98 string getOligosFile();
100 void setListFile(string);
101 void setGroupFile(string file);
102 void setPhylipFile(string);
103 void setColumnFile(string);
104 void setNameFile(string);
105 void setRabundFile(string);
106 void setSabundFile(string);
107 void setSharedFile(string);
108 void setFormat(string);
109 void setRandomTree(string);
110 void setGroups(string);
111 void setCalc(string);
112 void setCountEnds(string);
113 void setProcessors(string);
119 void parseGlobalData(string, string);
121 void parseTreeFile(); //parses through tree file to find names of nodes and number of them
122 //this is required in case user has sequences in the names file that are
123 //not included in the tree.
124 //only takes names from the first tree in the tree file and assumes that all trees use the same names.
129 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, flip, forMismatch, revMismatch, barMismatch, oligoFile;
132 static GlobalData* _uniqueInstance;
133 GlobalData( const GlobalData& ); // Disable copy constructor
134 void operator=( const GlobalData& ); // Disable assignment operator
137 void reset(); //clears all non filename parameters
138 void readTreeString(ifstream&);