1 #ifndef ERRORCHECKING_H
2 #define ERRORCHECKING_H
7 * Created by Sarah Westcott on 1/2/09.
8 * Copyright 2009 Schloss Lab UMASS Amherst. All rights reserved.
12 #include <Carbon/Carbon.h>
15 #include "globaldata.hpp"
16 #include "validcommands.h"
17 #include "validparameter.h"
18 #include "validcalculator.h"
24 bool checkInput(string);
27 GlobalData* globaldata;
28 ValidCommands* validCommand;
29 ValidParameters* validParameter;
30 ValidCalculators* validCalculator;
31 void splitAtDash(string&, vector<string>&);
32 void splitAtDash(string&, set<int>&);
33 void splitAtDash(string&, set<string>&);
34 void validateReadFiles();
35 void validateReadDist();
36 void validateReadPhil();
37 void validateParseFiles();
39 string phylipfile, columnfile, listfile, rabundfile, sabundfile, namefile, groupfile, orderfile, fastafile, cutoff, format;
40 string precision, method, fileroot, label, line, iters, jumble, freq, single, rarefaction, shared, summary;
41 string commandName, optionText;
43 vector<string> singleEsimators, sharedEstimators, rareEstimators, summaryEstimators, sharedRareEstimators;