countfile = validParameter.validFile(parameters, "count", true);
if (countfile == "not open") { abort = true; countfile = ""; }
else if (countfile == "not found") { countfile = ""; }
- else { ct.readTable(countfile, false); m->setCountTableFile(countfile); }
+ else { ct.readTable(countfile, true); m->setCountTableFile(countfile); }
if ((countfile != "") && (namefile != "")) { m->mothurOut("When executing a cluster.fragments command you must enter ONLY ONE of the following: count or name."); m->mothurOutEndLine(); abort = true; }
if (countfile == "") {
sort(binNames.begin(), binNames.end());
bin = "";
- for (int i = 0; i < binNames.size()-1; i++) {
- bin += binNames[i] + ',';
+ for (int j = 0; j < binNames.size()-1; j++) {
+ bin += binNames[j] + ',';
}
bin += binNames[binNames.size()-1];
map<string, string>::iterator it = repNames.find(bin);
}
CountTable ct;
if (countfile != "") {
- ct.readTable(countfile, false);
+ ct.readTable(countfile, true);
if (countfile == outCountFile){
//prepare filenames and open files
map<string, string> mvariables;
if (!dups) {//adjust name if needed
map<string, string>::iterator it = uniqueMap.find(name);
- if (it != uniqueMap.end()) { name = it->second; }
+ if (it != uniqueMap.end()) { currSeq.setName(it->second); }
}
+ name = currSeq.getName();
+
if (name != "") {
//if this name is in the accnos file
if (names.count(name) != 0) {
if (m->control_pressed) { in.close(); out.close(); m->mothurRemove(outputFileName); return 0; }
- in >> firstCol;
+ in >> firstCol; m->gobble(in);
in >> secondCol;
string hold = "";
selectedCount += parsedNames.size();
if (m->debug) { sanity["name"].insert(firstCol); }
}else {
+
selectedCount += validSecond.size();
//if the name in the first column is in the set then print it and any other names in second column also in set
//make first name in set you come to first column and then add the remaining names to second column
}else {
+
//you want part of this row
if (validSecond.size() != 0) {
CYGWIN_BUILD ?= no
USECOMPRESSION ?= no
MOTHUR_FILES="\"Enter_your_default_path_here\""
-RELEASE_DATE = "\"5/28/2013\""
-VERSION = "\"1.31.0\""
+RELEASE_DATE = "\"5/29/2013\""
+VERSION = "\"1.31.1\""
FORTAN_COMPILER = gfortran
FORTRAN_FLAGS =
vector<int> longHomoPolymer;
vector<int> numNs;
- vector<unsigned long long> positions;
#if defined (__APPLE__) || (__MACH__) || (linux) || (__linux) || (__linux__) || (__unix__) || (__unix)
positions = m->divideFile(fastafile, processors);
for (int i = 0; i < (positions.size()-1); i++) { lines.push_back(linePair(positions[i], positions[(i+1)])); }
int pid;
MPI_Comm_rank(MPI_COMM_WORLD, &pid);
- if (pid == 0) {
- driverCreateSummary(startPosition, endPosition, seqLength, ambigBases, longHomoPolymer, numNs, fastafile, lines[0]);
+ if (pid == 0) {
+ linePair tempLine(0, positions[positions.size()-1]);
+ driverCreateSummary(startPosition, endPosition, seqLength, ambigBases, longHomoPolymer, numNs, fastafile, tempLine);
#else
int numSeqs = 0;
//#if defined (__APPLE__) || (__MACH__) || (linux) || (__linux) || (__linux__) || (__unix__) || (__unix)