From 3cd964b03f04bc569c4a7d0b99be9908c54c1d44 Mon Sep 17 00:00:00 2001 From: kdiverson Date: Mon, 2 Jul 2012 09:46:29 -0400 Subject: [PATCH] cleaned up code2 --- kruskalwalliscommand.cpp | 17 ++++++++++++++++- 1 file changed, 16 insertions(+), 1 deletion(-) diff --git a/kruskalwalliscommand.cpp b/kruskalwalliscommand.cpp index 76aebe0..de15a8b 100644 --- a/kruskalwalliscommand.cpp +++ b/kruskalwalliscommand.cpp @@ -124,9 +124,24 @@ int KruskalWallisCommand::execute(){ try { if (abort == true) { if (calledHelp) { return 0; } return 2; } + InputData* input = new InputData(sharedfile, "sharedfile"); + vector lookup = input->getSharedRAbundVectors(); + string lastLabel = lookup[0]->getLabel(); + + //if the users enters label "0.06" and there is no "0.06" in their file use the next lowest label. + set processedLabels; + set userLabels = labels; + + ofstream out; + string outputFileName = outputDir + m->getRootName(m->getSimpleName(sharedfile)) + getOutputFileNameTag("summary"); + m->openOutputFile(outputFileName, out); + outputNames.push_back(outputFileName); outputTypes["summary"].push_back(outputFileName); + out.setf(ios::fixed, ios::floatfield); out.setf(ios::showpoint); + out << "H\tpvalue\n"; + //math goes here - int N; //= thisLookUp.size(); + int N = lookUp.size(); double H; double tmp = 0.0; vector vec; -- 2.39.2