]> git.donarmstrong.com Git - mothur.git/blobdiff - cooccurrencecommand.cpp
added sets to amova and homova commands. added oligos to make.contigs. added metadat...
[mothur.git] / cooccurrencecommand.cpp
index 00de4d6ee612439732207872eba327b8a03f699e..ef8c9eddce64e93092df8ed1031b37684f09fe38 100644 (file)
@@ -321,11 +321,11 @@ int CooccurrenceCommand::getCooccurrence(vector<SharedRAbundVector*>& thisLookUp
         int nrows = numOTUS;//rows of inital matrix
         int ncols = thisLookUp.size();//groups
         double initscore = 0.0;
-        
+       
         vector<double> stats;
-        double probabilityMatrix[ncols * nrows];
+        vector<double> probabilityMatrix; probabilityMatrix.resize(ncols * nrows, 0);
         vector<vector<int> > nullmatrix(nrows, vector<int>(ncols, 0));
-        
+       
         TrialSwap2 trial;
         
         int n = accumulate( columntotal.begin(), columntotal.end(), 0 );