X-Git-Url: https://git.donarmstrong.com/?a=blobdiff_plain;f=metastats2.c;h=8f5ce39eb9d5523e10dee238abbf65ed8530cbbb;hb=5c076cc7d3842d8050694918948e023334c9839e;hp=bbea3ce8deacf3debe2b6f5adfc909e944862345;hpb=df41d90a9611eab75d0516e2654ed8580f8df24c;p=mothur.git diff --git a/metastats2.c b/metastats2.c index bbea3ce..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