]> git.donarmstrong.com Git - mothur.git/blobdiff - readtreecommand.h
fixed bug with dist.shared subsampling. added mode parameter to dist.shared so...
[mothur.git] / readtreecommand.h
index 97391d0982bbadb437ebe13318c47babeca4a981..cbf376909ff998531ed959f34edb5d72e8b72fcd 100644 (file)
 #include "readtree.h"
 #include "treemap.h"
 
-class GlobalData;
 
 class ReadTreeCommand : public Command {
 public:
        ReadTreeCommand(string);
-       ReadTreeCommand() {}
-       ~ReadTreeCommand();
-       vector<string> getRequiredParameters();
-       vector<string> getValidParameters();
-       vector<string> getRequiredFiles();
-       map<string, vector<string> > getOutputFiles() { return outputTypes; }
-       int execute();
-       void help();
+       ReadTreeCommand() { abort = true; calledHelp = true; }
+       ~ReadTreeCommand() {}
+       
+       vector<string> setParameters() {  return outputNames; } //dummy doesn't really do anything
+       string getCommandName()                 { return "read.tree";   }
+       string getCommandCategory()             { return "Hidden";      }
+       string getHelpString() { return "This command is no longer available. You can provide your files directly to the downstream commands like unifrac.unweighted."; }       
+       string getCitation() { return "http://www.mothur.org/wiki/Read.tree"; }
+       string getDescription()         { return "read.tree"; }
+       
+       int execute(); 
+       void help() { m->mothurOut(getHelpString()); }  
        
 private:
-       GlobalData* globaldata;
        ReadTree* read;
        TreeMap* treeMap;
        string filename, treefile, groupfile, namefile;
        bool abort;
        map<string, string> nameMap;
        vector<string> outputNames;
-       map<string, vector<string> > outputTypes;
        
        int readNamesFile();
        int numUniquesInName;