X-Git-Url: https://git.donarmstrong.com/?a=blobdiff_plain;f=splitmatrix.cpp;fp=splitmatrix.cpp;h=dcc5b50ef8b396d9186c755c3ba949f9c789cf64;hb=8bc3e5b38c2317a1715f53be22fa96455868c281;hp=b7a3b49362dbd7c67f54649ba1b846a5c7cf6c79;hpb=f663afa231c9bc1b5e18e0ea3bdd2b2ee784f5b2;p=mothur.git diff --git a/splitmatrix.cpp b/splitmatrix.cpp index b7a3b49..dcc5b50 100644 --- a/splitmatrix.cpp +++ b/splitmatrix.cpp @@ -24,12 +24,13 @@ SplitMatrix::SplitMatrix(string distfile, string name, string tax, float c, stri } /***********************************************************************/ -SplitMatrix::SplitMatrix(string ffile, string name, string tax, float c, string t, int p, string output){ +SplitMatrix::SplitMatrix(string ffile, string name, string tax, float c, float cu, string t, int p, string output){ m = MothurOut::getInstance(); fastafile = ffile; namefile = name; taxFile = tax; - cutoff = c; + cutoff = c; //tax level cutoff + distCutoff = cu; //for fasta method if you are creating distance matrix you need a cutoff for that method = t; processors = p; outputDir = output; @@ -181,7 +182,7 @@ int SplitMatrix::createDistanceFilesFromTax(map& seqGroup, int numG //process each distance file for (int i = 0; i < numGroups; i++) { - string options = "fasta=" + (fastafile + "." + toString(i) + ".temp") + ", processors=" + toString(processors) + ", cutoff=" + toString(cutoff); + string options = "fasta=" + (fastafile + "." + toString(i) + ".temp") + ", processors=" + toString(processors) + ", cutoff=" + toString(distCutoff); Command* command = new DistanceCommand(options); command->execute();