A70B53A70F4CD7AD0064797E /* getlabelcommand.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = getlabelcommand.h; sourceTree = SOURCE_ROOT; };
A70B53A80F4CD7AD0064797E /* getlinecommand.cpp */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.cpp.cpp; path = getlinecommand.cpp; sourceTree = SOURCE_ROOT; };
A70B53A90F4CD7AD0064797E /* getlinecommand.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = getlinecommand.h; sourceTree = SOURCE_ROOT; };
- A7283FF61056CAE100D0CC69 /* chimeracheckrdp.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = chimeracheckrdp.h; sourceTree = "<group>"; };
- A7283FF71056CAE100D0CC69 /* chimeracheckrdp.cpp */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.cpp.cpp; path = chimeracheckrdp.cpp; sourceTree = "<group>"; };
+ A7283FF61056CAE100D0CC69 /* chimeracheckrdp.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = chimeracheckrdp.h; sourceTree = SOURCE_ROOT; };
+ A7283FF71056CAE100D0CC69 /* chimeracheckrdp.cpp */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.cpp.cpp; path = chimeracheckrdp.cpp; sourceTree = SOURCE_ROOT; };
A75B887B104C16860083C454 /* ccode.cpp */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.cpp.cpp; path = ccode.cpp; sourceTree = SOURCE_ROOT; };
A75B887C104C16860083C454 /* ccode.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = ccode.h; sourceTree = SOURCE_ROOT; };
C6859E8B029090EE04C91782 /* Mothur.1 */ = {isa = PBXFileReference; lastKnownFileType = text.man; path = Mothur.1; sourceTree = "<group>"; };
//run last line if you need to
if (needToRun == true) {
- delete list;
+ if (list != NULL) { delete list; }
list = input->getListVector(lastLabel);
error = process(list);
//run last line if you need to
if (needToRun == true) {
- delete order;
+ if (order != NULL) { delete order; }
order = input->getSharedOrderVector(lastLabel);
mothurOut(order->getLabel()); mothurOutEndLine();
process(order);
openInputFile(quanfile, in);
vector< vector<float> > quan;
- vector <float> temp;
+ vector <float> temp; temp.resize(6, 0);
//to fill 0
quan.push_back(temp);
//run last line if you need to
if (needToRun == true) {
- delete order;
+ if (order != NULL) { delete order; }
order = (input->getOrderVector(lastLabel));
mothurOut(order->getLabel()); mothurOutEndLine();
//run last line if you need to
if (needToRun == true) {
- delete order;
+ if (order != NULL) { delete order; }
order = input->getSharedOrderVector(lastLabel);
cCurve = new Collect(order, cDisplays);
- cCurve->getCurve(freq);
+ cCurve->getSharedCurve(freq);
delete cCurve;
mothurOut(order->getLabel()); mothurOutEndLine();
//run last line if you need to
if (needToRun == true) {
- delete list;
+ if (list != NULL) { delete list; }
list = input->getListVector(lastLabel);
mothurOut(list->getLabel() + "\t" + toString(list->size())); mothurOutEndLine();
error = process(list);
//run last line if you need to
if (needToRun == true) {
- delete list;
+ if (list != NULL) { delete list; }
list = input->getListVector(lastLabel);
mothurOut(list->getLabel()); mothurOutEndLine();
//run last line if you need to
if (needToRun == true) {
- delete order;
+ if (order != NULL) { delete order; }
order = (input->getOrderVector(lastLabel));
mothurOut(order->getLabel()); mothurOutEndLine();
//run last line if you need to
if (needToRun == true) {
- for (int i = 0; i < lookup.size(); i++) { delete lookup[i]; }
+ for (int i = 0; i < lookup.size(); i++) { if (lookup[i] != NULL) { delete lookup[i]; } }
lookup = input->getSharedRAbundVectors(lastLabel);
mothurOut(lookup[0]->getLabel()); mothurOutEndLine();
//run last line if you need to
if (needToRun == true) {
- delete rabund;
+ if (rabund != NULL) { delete rabund; }
rabund = input->getRAbundVector(lastLabel);
mothurOut(rabund->getLabel()); mothurOutEndLine();
//run last line if you need to
if (needToRun == true) {
- for (int i = 0; i < lookup.size(); i++) { delete lookup[i]; }
+ for (int i = 0; i < lookup.size(); i++) { if (lookup[i] != NULL) { delete lookup[i]; } }
lookup = input->getSharedRAbundVectors(lastLabel);
mothurOut(lookup[0]->getLabel()); mothurOutEndLine();
//run last line if you need to
if (needToRun == true) {
- for (int i = 0; i < lookup.size(); i++) { delete lookup[i]; }
+ for (int i = 0; i < lookup.size(); i++) { if (lookup[i] != NULL) { delete lookup[i]; } }
lookup = input->getSharedRAbundVectors(lastLabel);
mothurOut(lookup[0]->getLabel()); mothurOutEndLine();
//header
- mothurOut("mothur v.1.5.1");
+ mothurOut("mothur v.1.6.0");
mothurOutEndLine();
- mothurOut("Last updated: 9/02/2009");
+ mothurOut("Last updated: 9/15/2009");
mothurOutEndLine();
mothurOutEndLine();
mothurOut("by");
}
/***********************************************************************/
+inline void gobble(istream& f){
+
+ char d;
+ while(isspace(d=f.get())) {;}
+ f.putback(d);
+
+}
+
+/***********************************************************************/
+
inline string getline(ifstream& fileHandle) {
try {
char c = fileHandle.get();
//are you at the end of the line
- if ((c == '\n') || (c == '\r') || (c == '\f')){ break; }
+ if ((c == '\n') || (c == '\r') || (c == '\f')){ break; }
else { line += c; }
}
-/***********************************************************************/
-
-inline void gobble(istream& f){
-
- char d;
- while(isspace(d=f.get())) {;}
- f.putback(d);
-
-}
/***********************************************************************/
inline bool isTrue(string f){
//run last line if you need to
if (needToRun == true) {
- delete order;
+ if (order != NULL) { delete order; }
order = (input->getOrderVector(lastLabel));
rCurve = new Rarefact(order, rDisplays);
//run last line if you need to
if (needToRun == true) {
- for (int i = 0; i < lookup.size(); i++) { delete lookup[i]; }
+ for (int i = 0; i < lookup.size(); i++) { if (lookup[i] != NULL) { delete lookup[i]; } }
lookup = input->getSharedRAbundVectors(lastLabel);
mothurOut(lookup[0]->getLabel()); mothurOutEndLine();
if (abort == true) { return 0; }
- time_t start = time(NULL);
+ //time_t start = time(NULL);
size_t numDists = 0;
if (format == "matrix") {
}
}
- string dist_string = "Dist:";
- string count_string = "Count: ";
- for (int i = 0; i <= lines;i++) {
- dist_string = dist_string.append("\t").append(toString(dist_cutoff[i]));
- count_string = count_string.append("\t").append(toString(dist_count[i]));
- }
- mothurOut(dist_string); mothurOutEndLine(); mothurOut(count_string); mothurOutEndLine();
+ // string dist_string = "Dist:";
+ // string count_string = "Count: ";
+ //for (int i = 0; i <= lines;i++) {
+ //dist_string = dist_string.append("\t").append(toString(dist_cutoff[i]));
+ // count_string = count_string.append("\t").append(toString(dist_count[i]));
+ // }
+ //mothurOut(dist_string); mothurOutEndLine(); mothurOut(count_string); mothurOutEndLine();
}
- mothurOut("It took " + toString(time(NULL) - start) + " secs to read " + toString(numDists) + " distances (cutoff: " + toString(cutoff) + ")"); mothurOutEndLine();
+ //mothurOut("It took " + toString(time(NULL) - start) + " secs to read " + toString(numDists) + " distances (cutoff: " + toString(cutoff) + ")"); mothurOutEndLine();
return 0;
}
//run last line if you need to
if (needToRun == true) {
- delete SharedList;
+ if (SharedList != NULL) { delete SharedList; }
SharedList = input->getSharedListVector(lastLabel); //get new list vector to process
lookup = SharedList->getSharedRAbundVector();
//run last line if you need to
if (needToRun == true) {
- delete sabund;
+ if (sabund != NULL) { delete sabund; }
sabund = input->getSAbundVector(lastLabel);
mothurOut(sabund->getLabel()); mothurOutEndLine();
//run last line if you need to
if (needToRun == true) {
- for (int i = 0; i < lookup.size(); i++) { delete lookup[i]; }
+ for (int i = 0; i < lookup.size(); i++) { if (lookup[i] != NULL) { delete lookup[i]; } }
lookup = input->getSharedRAbundVectors(lastLabel);
mothurOut(lookup[0]->getLabel()); mothurOutEndLine();
//run last line if you need to
if (needToRun == true) {
- for (int i = 0; i < lookup.size(); i++) { delete lookup[i]; }
+ for (int i = 0; i < lookup.size(); i++) { if (lookup[i] != NULL) { delete lookup[i]; } }
lookup = input->getSharedRAbundVectors(lastLabel);
mothurOut(lookup[0]->getLabel()); mothurOutEndLine();
public:
UnifracWeightedCommand(string);
- ~UnifracWeightedCommand() { delete weighted; delete util; }
+ ~UnifracWeightedCommand() { if (abort == false) { delete weighted; delete util; } }
int execute();
void help();
//run last line if you need to
if (needToRun == true) {
- for (int i = 0; i < lookup.size(); i++) { delete lookup[i]; }
+ for (int i = 0; i < lookup.size(); i++) { if (lookup[i] != NULL) { delete lookup[i]; } }
lookup = input->getSharedRAbundVectors(lastLabel);
mothurOut(lookup[0]->getLabel()); mothurOutEndLine();
//run last line if you need to
if (needToRun == true) {
- delete sabund;
+ if (sabund != NULL) { delete sabund; }
sabund = input->getSAbundVector(lastLabel);
mothurOut(sabund->getLabel()); mothurOutEndLine();