X-Git-Url: https://git.donarmstrong.com/?a=blobdiff_plain;f=metastats2.c;h=8f5ce39eb9d5523e10dee238abbf65ed8530cbbb;hb=5c076cc7d3842d8050694918948e023334c9839e;hp=b22938af69282857aa354c4e55ec2c30a4921d8f;hpb=b4d2979ffc1440ffeac9343cc60ceb80fff0e058;p=mothur.git diff --git a/metastats2.c b/metastats2.c index b22938a..8f5ce39 100644 --- a/metastats2.c +++ b/metastats2.c @@ -22,17 +22,23 @@ int metastat_main (char* outputFileName, int numRows, int numCols, double thresh } // Initialize the matrices - size = row*col; - double matrix[row][col]; - double pmatrix[size],pmatrix2[size],permuted[size]; - double storage[row][9]; - - for (i=0;i.999999999){ @@ -197,11 +214,14 @@ int metastat_main (char* outputFileName, int numRows, int numCols, double thresh } } else{ - + testp(permuted_ttests, permutes, permuted,pmatrix, nc, nr, gvalue,tinitial,pvalues); // Checks to make sure the matrix isn't sparse. - double sparse[row], sparse2[row]; + double * sparse, * sparse2; + sparse = (double *) malloc(size*sizeof(double)); + sparse2 = (double *) malloc(size*sizeof(double)); + for(i=0;i