Skip to content

Commit

Permalink
Benches classify.rf command
Browse files Browse the repository at this point in the history
  • Loading branch information
mothur-westcott committed Jul 19, 2016
1 parent 2e89f31 commit 8ca2f06
Show file tree
Hide file tree
Showing 9 changed files with 102 additions and 250 deletions.
36 changes: 13 additions & 23 deletions Mothur.xcodeproj/project.pbxproj
Expand Up @@ -324,12 +324,10 @@
481FB6671AC1B8450076CFF3 /* randomnumber.cpp in Sources */ = {isa = PBXBuildFile; fileRef = A77B7186173D4041002163C2 /* randomnumber.cpp */; };
481FB6681AC1B8450076CFF3 /* rarecalc.cpp in Sources */ = {isa = PBXBuildFile; fileRef = A7E9B7A512D37EC400DA6239 /* rarecalc.cpp */; };
481FB6691AC1B8520076CFF3 /* abstractdecisiontree.cpp in Sources */ = {isa = PBXBuildFile; fileRef = A7386C241619E52200651424 /* abstractdecisiontree.cpp */; };
481FB66A1AC1B8520076CFF3 /* abstractrandomforest.cpp in Sources */ = {isa = PBXBuildFile; fileRef = 48705AC319BE32C50075E977 /* abstractrandomforest.cpp */; };
481FB66B1AC1B8520076CFF3 /* decisiontree.cpp in Sources */ = {isa = PBXBuildFile; fileRef = A7386C28161A110700651424 /* decisiontree.cpp */; };
481FB66C1AC1B8520076CFF3 /* randomforest.cpp in Sources */ = {isa = PBXBuildFile; fileRef = A77E1937161B201E00DB1A2A /* randomforest.cpp */; };
481FB66D1AC1B8520076CFF3 /* rftreenode.cpp in Sources */ = {isa = PBXBuildFile; fileRef = A77E193A161B289600DB1A2A /* rftreenode.cpp */; };
481FB66E1AC1B8520076CFF3 /* forest.cpp in Sources */ = {isa = PBXBuildFile; fileRef = 83F25B0A163B031200ABE73D /* forest.cpp */; };
481FB66F1AC1B8520076CFF3 /* regularizedrandomforest.cpp in Sources */ = {isa = PBXBuildFile; fileRef = 834D9D561656D7C400E7FAB9 /* regularizedrandomforest.cpp */; };
481FB6701AC1B8820076CFF3 /* raredisplay.cpp in Sources */ = {isa = PBXBuildFile; fileRef = A7E9B7A712D37EC400DA6239 /* raredisplay.cpp */; };
481FB6711AC1B8820076CFF3 /* rarefact.cpp in Sources */ = {isa = PBXBuildFile; fileRef = A7E9B7A912D37EC400DA6239 /* rarefact.cpp */; };
481FB6721AC1B8820076CFF3 /* refchimeratest.cpp in Sources */ = {isa = PBXBuildFile; fileRef = 7E6BE10912F710D8007ADDBE /* refchimeratest.cpp */; };
Expand Down Expand Up @@ -369,11 +367,11 @@
4827A4DC1CB3ED2200345170 /* fastqdataset.cpp in Sources */ = {isa = PBXBuildFile; fileRef = 4827A4DA1CB3ED2100345170 /* fastqdataset.cpp */; };
4829D9671B8387D0002EEED4 /* testbiominfocommand.cpp in Sources */ = {isa = PBXBuildFile; fileRef = 4829D9651B8387D0002EEED4 /* testbiominfocommand.cpp */; };
483C952E188F0CAD0035E7B7 /* (null) in Sources */ = {isa = PBXBuildFile; };
4846AD8A1D3810DD00DE9913 /* testtrimoligos.cpp in Sources */ = {isa = PBXBuildFile; fileRef = 4846AD881D3810DD00DE9913 /* testtrimoligos.cpp */; };
48705AC419BE32C50075E977 /* getmimarkspackagecommand.cpp in Sources */ = {isa = PBXBuildFile; fileRef = 48705ABB19BE32C50075E977 /* getmimarkspackagecommand.cpp */; };
48705AC519BE32C50075E977 /* oligos.cpp in Sources */ = {isa = PBXBuildFile; fileRef = 48705ABD19BE32C50075E977 /* oligos.cpp */; };
48705AC619BE32C50075E977 /* mergesfffilecommand.cpp in Sources */ = {isa = PBXBuildFile; fileRef = 48705ABF19BE32C50075E977 /* mergesfffilecommand.cpp */; };
48705AC719BE32C50075E977 /* sharedrjsd.cpp in Sources */ = {isa = PBXBuildFile; fileRef = 48705AC119BE32C50075E977 /* sharedrjsd.cpp */; };
48705AC819BE32C50075E977 /* abstractrandomforest.cpp in Sources */ = {isa = PBXBuildFile; fileRef = 48705AC319BE32C50075E977 /* abstractrandomforest.cpp */; };
487C5A871AB88B93002AF48A /* mimarksattributescommand.cpp in Sources */ = {isa = PBXBuildFile; fileRef = 487C5A851AB88B93002AF48A /* mimarksattributescommand.cpp */; };
487D09EB1CB2CEF3007039BF /* vsearchfileparser.cpp in Sources */ = {isa = PBXBuildFile; fileRef = 489B55701BCD7F0100FB7DC8 /* vsearchfileparser.cpp */; };
487D09EC1CB2CEFE007039BF /* averagelinkage.cpp in Sources */ = {isa = PBXBuildFile; fileRef = 2114A7671C654D7400D3D8D9 /* averagelinkage.cpp */; };
Expand Down Expand Up @@ -403,7 +401,6 @@
48EDB76C1D1320DD00F76E93 /* chimeravsearchcommand.cpp in Sources */ = {isa = PBXBuildFile; fileRef = 48EDB76A1D1320DD00F76E93 /* chimeravsearchcommand.cpp */; };
48F98E4D1A9CFD670005E81B /* completelinkage.cpp in Sources */ = {isa = PBXBuildFile; fileRef = 48F98E4C1A9CFD670005E81B /* completelinkage.cpp */; };
7E6BE10A12F710D8007ADDBE /* refchimeratest.cpp in Sources */ = {isa = PBXBuildFile; fileRef = 7E6BE10912F710D8007ADDBE /* refchimeratest.cpp */; };
834D9D581656D7C400E7FAB9 /* regularizedrandomforest.cpp in Sources */ = {isa = PBXBuildFile; fileRef = 834D9D561656D7C400E7FAB9 /* regularizedrandomforest.cpp */; };
835FE03D19F00640005AA754 /* classifysvmsharedcommand.cpp in Sources */ = {isa = PBXBuildFile; fileRef = 7B2181FE17AD777B00286E6A /* classifysvmsharedcommand.cpp */; };
835FE03E19F00A4D005AA754 /* svm.cpp in Sources */ = {isa = PBXBuildFile; fileRef = 7B21820117AD77BD00286E6A /* svm.cpp */; };
83F25B0C163B031200ABE73D /* forest.cpp in Sources */ = {isa = PBXBuildFile; fileRef = 83F25B0A163B031200ABE73D /* forest.cpp */; };
Expand Down Expand Up @@ -808,8 +805,9 @@
4827A4DB1CB3ED2100345170 /* fastqdataset.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = fastqdataset.h; sourceTree = "<group>"; };
4829D9651B8387D0002EEED4 /* testbiominfocommand.cpp */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.cpp.cpp; path = testbiominfocommand.cpp; sourceTree = "<group>"; };
4829D9661B8387D0002EEED4 /* testbiominfocommand.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = testbiominfocommand.h; sourceTree = "<group>"; };
4846AD881D3810DD00DE9913 /* testtrimoligos.cpp */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.cpp.cpp; path = testtrimoligos.cpp; sourceTree = "<group>"; };
4846AD891D3810DD00DE9913 /* testtrimoligos.hpp */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.cpp.h; path = testtrimoligos.hpp; sourceTree = "<group>"; };
484F21691BA1C5F8001C1B5F /* makefile-internal */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = text; path = "makefile-internal"; sourceTree = SOURCE_ROOT; };
48705ABA19BE32C50075E977 /* abstractrandomforest.hpp */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.cpp.h; name = abstractrandomforest.hpp; path = source/randomforest/abstractrandomforest.hpp; sourceTree = SOURCE_ROOT; };
48705ABB19BE32C50075E977 /* getmimarkspackagecommand.cpp */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.cpp.cpp; name = getmimarkspackagecommand.cpp; path = source/commands/getmimarkspackagecommand.cpp; sourceTree = SOURCE_ROOT; };
48705ABC19BE32C50075E977 /* getmimarkspackagecommand.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; name = getmimarkspackagecommand.h; path = source/commands/getmimarkspackagecommand.h; sourceTree = SOURCE_ROOT; };
48705ABD19BE32C50075E977 /* oligos.cpp */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.cpp.cpp; name = oligos.cpp; path = source/datastructures/oligos.cpp; sourceTree = SOURCE_ROOT; };
Expand All @@ -818,7 +816,6 @@
48705AC019BE32C50075E977 /* mergesfffilecommand.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; name = mergesfffilecommand.h; path = source/commands/mergesfffilecommand.h; sourceTree = SOURCE_ROOT; };
48705AC119BE32C50075E977 /* sharedrjsd.cpp */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.cpp.cpp; name = sharedrjsd.cpp; path = source/calculators/sharedrjsd.cpp; sourceTree = SOURCE_ROOT; };
48705AC219BE32C50075E977 /* sharedrjsd.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; name = sharedrjsd.h; path = source/calculators/sharedrjsd.h; sourceTree = SOURCE_ROOT; };
48705AC319BE32C50075E977 /* abstractrandomforest.cpp */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.cpp.cpp; name = abstractrandomforest.cpp; path = source/randomforest/abstractrandomforest.cpp; sourceTree = SOURCE_ROOT; };
487C5A851AB88B93002AF48A /* mimarksattributescommand.cpp */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.cpp.cpp; name = mimarksattributescommand.cpp; path = source/commands/mimarksattributescommand.cpp; sourceTree = SOURCE_ROOT; };
487C5A861AB88B93002AF48A /* mimarksattributescommand.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; name = mimarksattributescommand.h; path = source/commands/mimarksattributescommand.h; sourceTree = SOURCE_ROOT; };
48844B261AA74AF9006EF2B8 /* compare.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; name = compare.h; path = source/datastructures/compare.h; sourceTree = SOURCE_ROOT; };
Expand Down Expand Up @@ -860,8 +857,6 @@
7E6BE10812F710D8007ADDBE /* refchimeratest.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; name = refchimeratest.h; path = source/refchimeratest.h; sourceTree = "<group>"; };
7E6BE10912F710D8007ADDBE /* refchimeratest.cpp */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.cpp.cpp; name = refchimeratest.cpp; path = source/refchimeratest.cpp; sourceTree = "<group>"; };
7E78911B135F3E8600E725D2 /* eachgapdistignorens.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; name = eachgapdistignorens.h; path = source/calculators/eachgapdistignorens.h; sourceTree = SOURCE_ROOT; };
834D9D561656D7C400E7FAB9 /* regularizedrandomforest.cpp */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.cpp.cpp; name = regularizedrandomforest.cpp; path = source/randomforest/regularizedrandomforest.cpp; sourceTree = SOURCE_ROOT; };
834D9D571656D7C400E7FAB9 /* regularizedrandomforest.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; name = regularizedrandomforest.h; path = source/randomforest/regularizedrandomforest.h; sourceTree = SOURCE_ROOT; };
83F25B0A163B031200ABE73D /* forest.cpp */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.cpp.cpp; name = forest.cpp; path = source/randomforest/forest.cpp; sourceTree = SOURCE_ROOT; };
83F25B0B163B031200ABE73D /* forest.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; name = forest.h; path = source/randomforest/forest.h; sourceTree = SOURCE_ROOT; };
8DD76FB20486AB0100D96B5E /* mothur */ = {isa = PBXFileReference; explicitFileType = "compiled.mach-o.executable"; includeInIndex = 0; path = mothur; sourceTree = BUILT_PRODUCTS_DIR; };
Expand Down Expand Up @@ -1723,6 +1718,8 @@
48D6E96A1CA4262A008DF76B /* dataset.h */,
4827A4DA1CB3ED2100345170 /* fastqdataset.cpp */,
4827A4DB1CB3ED2100345170 /* fastqdataset.h */,
4846AD881D3810DD00DE9913 /* testtrimoligos.cpp */,
4846AD891D3810DD00DE9913 /* testtrimoligos.hpp */,
48D6E9661CA42389008DF76B /* testvsearchfileparser.cpp */,
48D6E9671CA42389008DF76B /* testvsearchfileparser.h */,
481FB5221AC0AA010076CFF3 /* testcontainers */,
Expand Down Expand Up @@ -1777,8 +1774,6 @@
children = (
A7386C1B1619CACB00651424 /* abstractdecisiontree.hpp */,
A7386C241619E52200651424 /* abstractdecisiontree.cpp */,
48705ABA19BE32C50075E977 /* abstractrandomforest.hpp */,
48705AC319BE32C50075E977 /* abstractrandomforest.cpp */,
A7386C1D1619CACB00651424 /* decisiontree.hpp */,
A7386C28161A110700651424 /* decisiontree.cpp */,
A7386C1E1619CACB00651424 /* macros.h */,
Expand All @@ -1788,8 +1783,6 @@
A77E193A161B289600DB1A2A /* rftreenode.cpp */,
83F25B0A163B031200ABE73D /* forest.cpp */,
83F25B0B163B031200ABE73D /* forest.h */,
834D9D561656D7C400E7FAB9 /* regularizedrandomforest.cpp */,
834D9D571656D7C400E7FAB9 /* regularizedrandomforest.h */,
);
name = randomforest;
path = /Users/sarahwestcott/Desktop/mothur;
Expand Down Expand Up @@ -2735,6 +2728,7 @@
481FB5E61AC1B77E0076CFF3 /* normalizesharedcommand.cpp in Sources */,
481FB5E71AC1B77E0076CFF3 /* nmdscommand.cpp in Sources */,
481FB52B1AC1B09F0076CFF3 /* setseedcommand.cpp in Sources */,
4846AD8A1D3810DD00DE9913 /* testtrimoligos.cpp in Sources */,
481FB5261AC0ADA00076CFF3 /* sequence.cpp in Sources */,
481FB5C61AC1B74F0076CFF3 /* getrelabundcommand.cpp in Sources */,
481FB6571AC1B8100076CFF3 /* inputdata.cpp in Sources */,
Expand All @@ -2755,7 +2749,6 @@
481FB5DD1AC1B77E0076CFF3 /* matrixoutputcommand.cpp in Sources */,
481FB5771AC1B6EA0076CFF3 /* spearman.cpp in Sources */,
481FB6031AC1B7970076CFF3 /* secondarystructurecommand.cpp in Sources */,
481FB66F1AC1B8520076CFF3 /* regularizedrandomforest.cpp in Sources */,
481FB5361AC1B5DC0076CFF3 /* getopt_long.cpp in Sources */,
481FB5A41AC1B7300076CFF3 /* clustercommand.cpp in Sources */,
481FB5671AC1B6AD0076CFF3 /* sharedmorisitahorn.cpp in Sources */,
Expand Down Expand Up @@ -2800,7 +2793,6 @@
481FB5831AC1B6FF0076CFF3 /* ccode.cpp in Sources */,
481FB5681AC1B6B20076CFF3 /* sharedochiai.cpp in Sources */,
481FB66E1AC1B8520076CFF3 /* forest.cpp in Sources */,
481FB66A1AC1B8520076CFF3 /* abstractrandomforest.cpp in Sources */,
481FB56A1AC1B6B80076CFF3 /* sharedsobs.cpp in Sources */,
481FB6671AC1B8450076CFF3 /* randomnumber.cpp in Sources */,
481FB5DB1AC1B75C0076CFF3 /* makelefsecommand.cpp in Sources */,
Expand Down Expand Up @@ -3170,7 +3162,6 @@
A7E9B95D12D37EC400DA6239 /* sharedsorclass.cpp in Sources */,
A7E9B95E12D37EC400DA6239 /* sharedsorest.cpp in Sources */,
A7E9B95F12D37EC400DA6239 /* sharedthetan.cpp in Sources */,
48705AC819BE32C50075E977 /* abstractrandomforest.cpp in Sources */,
A7E9B96012D37EC400DA6239 /* sharedthetayc.cpp in Sources */,
A7E9B96112D37EC400DA6239 /* sharedutilities.cpp in Sources */,
A7E9B96212D37EC400DA6239 /* shen.cpp in Sources */,
Expand Down Expand Up @@ -3287,7 +3278,6 @@
A721AB72161C572A009860A1 /* kmertree.cpp in Sources */,
A721AB77161C573B009860A1 /* taxonomynode.cpp in Sources */,
83F25B0C163B031200ABE73D /* forest.cpp in Sources */,
834D9D581656D7C400E7FAB9 /* regularizedrandomforest.cpp in Sources */,
A7496D2E167B531B00CC7D7C /* kruskalwalliscommand.cpp in Sources */,
A79EEF8616971D4A0006DEC1 /* filtersharedcommand.cpp in Sources */,
A74C06E916A9C0A9008390A3 /* primerdesigncommand.cpp in Sources */,
Expand Down Expand Up @@ -3334,7 +3324,7 @@
"DYLIB_CURRENT_VERSION[sdk=*]" = "";
GCC_DYNAMIC_NO_PIC = NO;
GCC_MODEL_TUNING = G5;
GCC_OPTIMIZATION_LEVEL = 3;
GCC_OPTIMIZATION_LEVEL = 0;
GCC_PREPROCESSOR_DEFINITIONS = (
"VERSION=\"\\\"1.37.1\\\"\"",
"RELEASE_DATE=\"\\\"04/11/2016\\\"\"",
Expand Down Expand Up @@ -3369,7 +3359,7 @@
DEPLOYMENT_LOCATION = YES;
DSTROOT = TARGET_BUILD_DIR;
GCC_MODEL_TUNING = G5;
GCC_OPTIMIZATION_LEVEL = 3;
GCC_OPTIMIZATION_LEVEL = 0;
GCC_PREPROCESSOR_DEFINITIONS = (
"VERSION=\"\\\"1.37.1\\\"\"",
"RELEASE_DATE=\"\\\"04/11/2016\\\"\"",
Expand Down Expand Up @@ -3397,17 +3387,17 @@
buildSettings = {
CLANG_WARN_UNREACHABLE_CODE = YES;
DEPLOYMENT_LOCATION = NO;
GCC_C_LANGUAGE_STANDARD = "compiler-default";
GCC_C_LANGUAGE_STANDARD = c11;
GCC_ENABLE_SSE3_EXTENSIONS = NO;
GCC_ENABLE_SSE41_EXTENSIONS = NO;
GCC_ENABLE_SSE42_EXTENSIONS = NO;
GCC_OPTIMIZATION_LEVEL = 3;
GCC_OPTIMIZATION_LEVEL = 0;
GCC_PREPROCESSOR_DEFINITIONS = (
"MOTHUR_FILES=\"\\\"/Users/sarahwestcott/desktop/release\\\"\"",
"VERSION=\"\\\"1.36.0\\\"\"",
"RELEASE_DATE=\"\\\"07/23/2015\\\"\"",
);
GCC_VERSION = "/usr/bin/c++";
GCC_VERSION = "";
"GCC_VERSION[arch=*]" = "";
GCC_WARN_ABOUT_MISSING_NEWLINE = YES;
GCC_WARN_ABOUT_MISSING_PROTOTYPES = NO;
Expand Down Expand Up @@ -3444,10 +3434,10 @@
buildSettings = {
CLANG_WARN_UNREACHABLE_CODE = YES;
DEPLOYMENT_LOCATION = NO;
GCC_C_LANGUAGE_STANDARD = "compiler-default";
GCC_C_LANGUAGE_STANDARD = c11;
GCC_GENERATE_DEBUGGING_SYMBOLS = NO;
GCC_MODEL_TUNING = "";
GCC_OPTIMIZATION_LEVEL = 3;
GCC_OPTIMIZATION_LEVEL = 0;
GCC_PREPROCESSOR_DEFINITIONS = (
"VERSION=\"\\\"1.37.6\\\"\"",
"RELEASE_DATE=\"\\\"06/20/2016\\\"\"",
Expand Down
43 changes: 43 additions & 0 deletions TestMothur/testtrimoligos.cpp
@@ -0,0 +1,43 @@
//
// testtrimoligos.cpp
// Mothur
//
// Created by Sarah Westcott on 7/14/16.
// Copyright © 2016 Schloss Lab. All rights reserved.
//

#include "catch.hpp"
#include "testtrimoligos.hpp"

/**************************************************************************************************/
TestTrimOligos::TestTrimOligos() { //setup
m = MothurOut::getInstance();

//set up barcodes, primers, pairedBarcodes and pairedPrimers

//Set up vector of seqs with barcodes and primers

//Set up vector of seqs with pairedbarcodes and pairedprimers

}
/**************************************************************************************************/
TestTrimOligos::~TestTrimOligos() {

}
/**************************************************************************************************/

TEST_CASE("Testing TrimOligos Class") {
TestTrimOligos testTrim;


//Create trimoligos classes with various constructors


//run all public strip functions


//run private functions


}
/**************************************************************************************************/
38 changes: 38 additions & 0 deletions TestMothur/testtrimoligos.hpp
@@ -0,0 +1,38 @@
//
// testtrimoligos.hpp
// Mothur
//
// Created by Sarah Westcott on 7/14/16.
// Copyright © 2016 Schloss Lab. All rights reserved.
//

#ifndef testtrimoligos_hpp
#define testtrimoligos_hpp

#include "trimoligos.h"
#include "sequence.hpp"

class TestTrimOligos : public TrimOligos {


public:

TestTrimOligos();
~TestTrimOligos();

MothurOut* m;
vector<Sequence> seqs;
vector<Sequence> pairedSeqs;

map<string, int> barcodes;
map<string, int> primers;
map<int, oligosPair> pairedPrimers;
map<int, oligosPair> pairedBarcodes;

using TrimOligos::compareDNASeq(string, string);
using TrimOligos::countDiffs(string, string);

};


#endif /* testtrimoligos_hpp */
2 changes: 1 addition & 1 deletion source/commandfactory.cpp
Expand Up @@ -305,7 +305,7 @@ CommandFactory::CommandFactory(){
commands["make.table"] = "make.table";
commands["sff.multiple"] = "sff.multiple";
commands["quit"] = "quit";
commands["classify.rf"] = "classify.rf";
//commands["classify.rf"] = "classify.rf";
commands["classify.svm"] = "classify.svm";
commands["filter.shared"] = "filter.shared";
commands["primer.design"] = "primer.design";
Expand Down
14 changes: 7 additions & 7 deletions source/commands/classifyrfsharedcommand.cpp
Expand Up @@ -403,23 +403,23 @@ void ClassifyRFSharedCommand::processSharedAndDesignData(vector<SharedRAbundVect
}
dataSet[i][j] = treatmentToIntMap[treatmentName];
}
cout << "here" << endl;

RandomForest randomForest(dataSet, numDecisionTrees, treeSplitCriterion, doPruning, pruneAggressiveness, discardHighErrorTrees, highErrorTreeDiscardThreshold, optimumFeatureSubsetSelectionCriteria, featureStandardDeviationThreshold);
cout << "here" << endl;

randomForest.populateDecisionTrees();
cout << "here" << endl;

randomForest.calcForrestErrorRate();
cout << "here" << endl;

randomForest.printConfusionMatrix(intToTreatmentMap);
cout << "here" << endl;


map<string, string> variables;
variables["[filename]"] = outputDir + m->getRootName(m->getSimpleName(sharedfile)) + "RF.";
variables["[distance]"] = lookup[0]->getLabel();
string filename = getOutputFileName("summary", variables);
outputNames.push_back(filename); outputTypes["summary"].push_back(filename);
randomForest.calcForrestVariableImportance(filename);
cout << "here" << endl;

//
map<string, string> variable;
variable["[filename]"] = outputDir + m->getRootName(m->getSimpleName(sharedfile)) + "misclassifications.";
Expand All @@ -428,7 +428,7 @@ void ClassifyRFSharedCommand::processSharedAndDesignData(vector<SharedRAbundVect
outputNames.push_back(mc_filename); outputTypes["summary"].push_back(mc_filename);
randomForest.getMissclassifications(mc_filename, intToTreatmentMap, names);
//
cout << "here" << endl;

m->mothurOutEndLine();
}
catch(exception& e) {
Expand Down

0 comments on commit 8ca2f06

Please sign in to comment.