]> git.donarmstrong.com Git - mothur.git/blobdiff - phylosummary.cpp
changed normalize.shared and sub.sample commands to fix bug in normalize.shared and...
[mothur.git] / phylosummary.cpp
index a9a170b86c77dff145079df269fd6b36813848ee..873e5d1788162611db706617d9cf17f73df6a48b 100644 (file)
@@ -200,7 +200,7 @@ int PhyloSummary::addSeqToTree(string seqName, string seqTaxonomy){
                                for (int k = level; k < maxLevel; k++) {  seqTaxonomy += "unclassified;";   }
                        }
                }
-
+               return 0;
        }
        catch(exception& e) {
                m->errorOut(e, "PhyloSummary", "addSeqToTree");
@@ -310,7 +310,7 @@ int PhyloSummary::addSeqToTree(string seqTaxonomy, vector<string> names){
                                for (int k = level; k < maxLevel; k++) {  seqTaxonomy += "unclassified;";   }
                        }
                }
-               
+               return 0;
        }
        catch(exception& e) {
                m->errorOut(e, "PhyloSummary", "addSeqToTree");
@@ -343,7 +343,7 @@ void PhyloSummary::print(ofstream& out){
        try {
                
                if (ignore) { assignRank(0); }
-               
+       
                //print labels
                out << "taxlevel\t rankID\t taxon\t daughterlevels\t total\t";
                if (groupmap != NULL) {
@@ -412,6 +412,7 @@ void PhyloSummary::print(int i, ofstream& out){
                                        for (int i = 0; i < groupmap->namesOfGroups.size(); i++) {  out << tree[it->second].groupCount[groupmap->namesOfGroups[i]] << '\t'; } 
                                }
                                out << endl;
+                               
                        }
                        
                        print(it->second, out);