]> git.donarmstrong.com Git - mothur.git/blobdiff - otuhierarchycommand.cpp
indicator command
[mothur.git] / otuhierarchycommand.cpp
index 17e29d9528c1122f73a2f81a32c1998dded037cf..b1f05398963ec330aa4a9409299715a02e25600e 100644 (file)
@@ -38,7 +38,7 @@ string OtuHierarchyCommand::getHelpString(){
                helpString += "otu.hierarchy(list=yourListFile, label=yourLabels).\n";
                helpString += "Example otu.hierarchy(list=amazon.fn.list, label=0.01-0.03).\n";
                helpString += "The otu.hierarchy command outputs a .otu.hierarchy file which is described on the wiki.\n";
-               helpString += "Note: No spaces between parameter labels (i.e. list), '=' and parameters (i.e.yourListFile).\n\n";
+               helpString += "Note: No spaces between parameter labels (i.e. list), '=' and parameters (i.e.yourListFile).\n";
                return helpString;
        }
        catch(exception& e) {
@@ -67,6 +67,7 @@ OtuHierarchyCommand::OtuHierarchyCommand(string option) {
                
                //allow user to run help
                if(option == "help") {  help(); abort = true; calledHelp = true; }
+               else if(option == "citation") { citation(); abort = true; calledHelp = true;}
                
                else {
                        vector<string> myArray = setParameters();
@@ -109,6 +110,7 @@ OtuHierarchyCommand::OtuHierarchyCommand(string option) {
                                        abort = true;
                                }
                        }else if (listFile == "not open") { abort = true; }     
+                       else { m->setListFile(listFile); }
                        
                        //if the user changes the output directory command factory will send this info to us in the output parameter 
                        outputDir = validParameter.validFile(parameters, "outputdir", false);           if (outputDir == "not found"){