- for (i=0; i<globaldata->sharedSummaryEstimators.size(); i++) {
- if (globaldata->sharedSummaryEstimators[i] == "sharedChao") {
- sumCalculators.push_back(new SharedChao1());
- }else if (globaldata->sharedSummaryEstimators[i] == "sharedAce") {
- sumCalculators.push_back(new SharedAce());
- }else if (globaldata->sharedSummaryEstimators[i] == "sharedJabund") {
- sumCalculators.push_back(new SharedJAbund());
- }else if (globaldata->sharedSummaryEstimators[i] == "sharedSorensonAbund") {
- sumCalculators.push_back(new SharedSorAbund());
- }else if (globaldata->sharedSummaryEstimators[i] == "sharedJclass") {
- sumCalculators.push_back(new SharedJclass());
- }else if (globaldata->sharedSummaryEstimators[i] == "sharedSorClass") {
- sumCalculators.push_back(new SharedSorClass());
- }else if (globaldata->sharedSummaryEstimators[i] == "sharedJest") {
- sumCalculators.push_back(new SharedJest());
- }else if (globaldata->sharedSummaryEstimators[i] == "sharedSorEst") {
- sumCalculators.push_back(new SharedSorEst());
- }else if (globaldata->sharedSummaryEstimators[i] == "SharedThetaYC") {
- sumCalculators.push_back(new SharedThetaYC());
- }else if (globaldata->sharedSummaryEstimators[i] == "SharedThetaN") {
- sumCalculators.push_back(new SharedThetaN());
+ for (i=0; i<globaldata->Estimators.size(); i++) {
+ if (validCalculator->isValidCalculator("sharedsummary", globaldata->Estimators[i]) == true) {
+ if (globaldata->Estimators[i] == "sharedsobs") {
+ sumCalculators.push_back(new SharedSobsCS());
+ }else if (globaldata->Estimators[i] == "sharedchao") {
+ sumCalculators.push_back(new SharedChao1());
+ }else if (globaldata->Estimators[i] == "sharedace") {
+ sumCalculators.push_back(new SharedAce());
+ }else if (globaldata->Estimators[i] == "jabund") {
+ sumCalculators.push_back(new JAbund());
+ }else if (globaldata->Estimators[i] == "sorabund") {
+ sumCalculators.push_back(new SorAbund());
+ }else if (globaldata->Estimators[i] == "jclass") {
+ sumCalculators.push_back(new Jclass());
+ }else if (globaldata->Estimators[i] == "sorclass") {
+ sumCalculators.push_back(new SorClass());
+ }else if (globaldata->Estimators[i] == "jest") {
+ sumCalculators.push_back(new Jest());
+ }else if (globaldata->Estimators[i] == "sorest") {
+ sumCalculators.push_back(new SorEst());
+ }else if (globaldata->Estimators[i] == "thetayc") {
+ sumCalculators.push_back(new ThetaYC());
+ }else if (globaldata->Estimators[i] == "thetan") {
+ sumCalculators.push_back(new ThetaN());
+ }else if (globaldata->Estimators[i] == "kstest") {
+ sumCalculators.push_back(new KSTest());
+ }else if (globaldata->Estimators[i] == "sharednseqs") {
+ sumCalculators.push_back(new SharedNSeqs());
+ }else if (globaldata->Estimators[i] == "ochiai") {
+ sumCalculators.push_back(new Ochiai());
+ }else if (globaldata->Estimators[i] == "anderberg") {
+ sumCalculators.push_back(new Anderberg());
+ }else if (globaldata->Estimators[i] == "kulczynski") {
+ sumCalculators.push_back(new Kulczynski());
+ }else if (globaldata->Estimators[i] == "kulczynskicody") {
+ sumCalculators.push_back(new KulczynskiCody());
+ }else if (globaldata->Estimators[i] == "lennon") {
+ sumCalculators.push_back(new Lennon());
+ }else if (globaldata->Estimators[i] == "morisitahorn") {
+ sumCalculators.push_back(new MorHorn());
+ }else if (globaldata->Estimators[i] == "braycurtis") {
+ sumCalculators.push_back(new BrayCurtis());
+ }else if (globaldata->Estimators[i] == "whittaker") {
+ sumCalculators.push_back(new Whittaker());
+ }