vector<int> columntotal; columntotal.resize(thisLookUp.size(), 0);
vector<int> rowtotal; rowtotal.resize(numOTUS, 0);
- for (int i = 0; i < thisLookUp.size(); i++) {
- for (int j = 0; j < thisLookUp[i]->getNumBins(); j++) {
+ for (int i = 0; i < thisLookUp.size(); i++) { //nrows in the shared file
+ for (int j = 0; j < thisLookUp[i]->getNumBins(); j++) { //cols of original shared file
if (m->control_pressed) { return 0; }
int abund = thisLookUp[i]->getAbundance(j);
int ncols = thisLookUp.size();//groups
double initscore = 0.0;
- vector<int> columntotal; columntotal.resize(ncols, 0);
- vector<int> rowtotal; rowtotal.resize(nrows, 0);
vector<double> stats;
double probabilityMatrix[ncols * nrows];
vector<vector<int> > nullmatrix(nrows, vector<int>(ncols, 0));
}
}
/**************************************************************************************************/
-int TrialSwap2::swap_checkerboards (vector<vector<int> > &co_matrix)
+int TrialSwap2::swap_checkerboards (vector<vector<int> > &co_matrix, vector<int> rowtotal, vector<int> columntotal, int ncols, int nrows)
{
try {
int ncols = co_matrix[0].size(); int nrows = co_matrix.size();
double calc_pvalue_lessthan (vector<double>, double);
double calc_pvalue_greaterthan (vector<double>, double);
- void swap_checkerboards (vector<vector<int> > &co_matrix, vector<int> rowtotal, vector<int> columntotal, int ncols, int nrows);
+ void swap_checkerboards (vector<vector<int> > &, vector<int>, vector<int>, int, int);
int calc_combo (int, int, vector<vector<int> > &);
double calc_vratio (int, int, vector<int>, vector<int>);
int calc_checker (vector<vector<int> > &, vector<int>, int, int);