forked from mothur/mothur
-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathclassifysharedcommand.h
54 lines (42 loc) · 1.57 KB
/
classifysharedcommand.h
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
//
// classifysharedcommand.h
// Mothur
//
// Created by Abu Zaher Md. Faridee on 8/13/12.
// Copyright (c) 2012 Schloss Lab. All rights reserved.
//
#ifndef __Mothur__classifysharedcommand__
#define __Mothur__classifysharedcommand__
#include "command.hpp"
#include "inputdata.h"
class ClassifySharedCommand : public Command {
public:
ClassifySharedCommand();
ClassifySharedCommand(string);
~ClassifySharedCommand() {};
vector<string> setParameters();
string getCommandName() { return "classify.shared"; }
string getCommandCategory() { return "OTU-Based Approaches"; }
string getHelpString();
string getOutputPattern(string);
string getCitation() { return "http://www.mothur.org/wiki/Classify.shared\n"; }
string getDescription() { return "implements the random forest machine learning algorithm to identify OTUs that can be used to differentiate between various groups of samples"; }
int execute();
void help() { m->mothurOut(getHelpString()); }
private:
bool abort;
string outputDir;
vector<string> outputNames, Groups;
string sharedfile, designfile;
set<string> labels;
bool allLines;
int processors;
bool useTiming;
GroupMap designMap;
int numDecisionTrees;
string treeSplitCriterion, optimumFeatureSubsetSelectionCriteria;
bool doPruning, discardHighErrorTrees;
double pruneAggressiveness, highErrorTreeDiscardThreshold, featureStandardDeviationThreshold;
void processSharedAndDesignData(vector<SharedRAbundVector*> lookup);
};
#endif /* defined(__Mothur__classifysharedcommand__) */