X-Git-Url: https://git.donarmstrong.com/?a=blobdiff_plain;ds=inline;f=metastatscommand.cpp;h=c5d349bc77b685b67a1e3251fa70f15602bb215d;hb=d205e70ae86dbee2efc2df02f2717975854de6ba;hp=a0e6ed5d9bfe95b0fa6724aa05c8a06c4350762e;hpb=43ed0accfbc2852849e104ff7eccdd2c42acd4ec;p=mothur.git diff --git a/metastatscommand.cpp b/metastatscommand.cpp index a0e6ed5..c5d349b 100644 --- a/metastatscommand.cpp +++ b/metastatscommand.cpp @@ -8,7 +8,6 @@ */ #include "metastatscommand.h" -#include "metastats.h" #include "sharedutilities.h" @@ -483,12 +482,13 @@ int MetaStatsCommand::driver(int start, int num, vector& th m->mothurOut("Missing shared info for " + setA + " or " + setB + ". Skipping comparison."); m->mothurOutEndLine(); outputNames.pop_back(); }else { + //fill data for (int j = 0; j < thisLookUp[0]->getNumBins(); j++) { //data[j] = new double[subset.size()]; data2[j].resize(subset.size(), 0.0); + for (int i = 0; i < subset.size(); i++) { - //data[j][i] = (subset[i]->getAbundance(j)); data2[j][i] = (subset[i]->getAbundance(j)); } } @@ -500,7 +500,6 @@ int MetaStatsCommand::driver(int start, int num, vector& th MothurMetastats mothurMeta(threshold, iters); mothurMeta.runMetastats(outputFileName , data2, setACount); m->mothurOutEndLine(); - m->mothurOutEndLine(); }