]> git.donarmstrong.com Git - mothur.git/commitdiff
changes while setting up test files
authorwestcott <westcott>
Wed, 6 Apr 2011 17:34:11 +0000 (17:34 +0000)
committerwestcott <westcott>
Wed, 6 Apr 2011 17:34:11 +0000 (17:34 +0000)
getgroupcommand.cpp
hclustercommand.cpp
removelineagecommand.cpp
sensspeccommand.cpp
setlogfilecommand.cpp
sharedcommand.cpp
splitabundcommand.cpp
unifracunweightedcommand.cpp

index ce3cf73d28e455fd3b111f3a10b7e74ba7f67186..6b76bf2d74a1c3443111dade5d7ceaad7a1c75a2 100644 (file)
@@ -64,9 +64,7 @@ GetgroupCommand::GetgroupCommand(string option)  {
                if(option == "help") { help(); abort = true; calledHelp = true; }
                
                else {
-                       //valid paramters for this command
-                       string Array[] =  {"outputdir","inputdir"};
-                       vector<string> myArray (Array, Array+(sizeof(Array)/sizeof(string)));
+                       vector<string> myArray = setParameters();
                        
                        OptionParser parser(option);
                        map<string,string> parameters = parser.getParameters();
index 503bc48273069f829103788ce2711bc12d56ea42..310ad376733be3baa142f3bc1b110edbfc19e04d 100644 (file)
@@ -76,9 +76,7 @@ HClusterCommand::HClusterCommand(string option)  {
                if(option == "help") { help(); abort = true; calledHelp = true; }
                
                else {
-                       //valid paramters for this command
-                       string Array[] =  {"cutoff","hard","precision","method","phylip","column","name","sorted","showabund","timing","outputdir","inputdir"};
-                       vector<string> myArray (Array, Array+(sizeof(Array)/sizeof(string)));
+                       vector<string> myArray = setParameters();
                        
                        OptionParser parser(option);
                        map<string,string> parameters = parser.getParameters();
index 75e2a079396c92f9e4ad8fcd0596ae399b2868a5..cf26ea07385360e9b5180b68b901970f6fc4a732 100644 (file)
@@ -86,9 +86,7 @@ RemoveLineageCommand::RemoveLineageCommand(string option)  {
                if(option == "help") { help(); abort = true; calledHelp = true; }
                
                else {
-                       //valid paramters for this command
-                       string Array[] =  {"fasta","name", "group", "alignreport", "taxon", "dups", "list","taxonomy","outputdir","inputdir"};
-                       vector<string> myArray (Array, Array+(sizeof(Array)/sizeof(string)));
+                       vector<string> myArray = setParameters();       
                        
                        OptionParser parser(option);
                        map<string,string> parameters = parser.getParameters();
index 1ce33e4157e9ed225052485d9804c39bc495dff0..7c4dc1322e9b69cbc021274a292098c7bbe67b57 100644 (file)
@@ -36,25 +36,7 @@ vector<string> SensSpecCommand::setParameters(){
 string SensSpecCommand::getHelpString(){       
        try {
                string helpString = "";
-               helpString += "The get.oturep command parameters are phylip, column, list, fasta, name, group, large, weighted, cutoff, precision, groups, sorted and label.  The fasta and list parameters are required, as well as phylip or column and name, unless you have valid current files.\n";
-               helpString += "The label parameter allows you to select what distance levels you would like a output files created for, and is separated by dashes.\n";
-               helpString += "The phylip or column parameter is required, but only one may be used.  If you use a column file the name filename is required. \n";
-               helpString += "If you do not provide a cutoff value 10.00 is assumed. If you do not provide a precision value then 100 is assumed.\n";
-               helpString += "The get.oturep command should be in the following format: get.oturep(phylip=yourDistanceMatrix, fasta=yourFastaFile, list=yourListFile, name=yourNamesFile, group=yourGroupFile, label=yourLabels).\n";
-               helpString += "Example get.oturep(phylip=amazon.dist, fasta=amazon.fasta, list=amazon.fn.list, group=amazon.groups).\n";
-               helpString += "The default value for label is all labels in your inputfile.\n";
-               helpString += "The sorted parameter allows you to indicate you want the output sorted. You can sort by sequence name, bin number, bin size or group. The default is no sorting, but your options are name, number, size, or group.\n";
-               helpString += "The large parameter allows you to indicate that your distance matrix is too large to fit in RAM.  The default value is false.\n";
-               helpString += "The weighted parameter allows you to indicate that want to find the weighted representative. You must provide a namesfile to set weighted to true.  The default value is false.\n";
-               helpString += "The representative is found by selecting the sequence that has the smallest total distance to all other sequences in the OTU. If a tie occurs the smallest average distance is used.\n";
-               helpString += "For weighted = false, mothur assumes the distance file contains only unique sequences, the list file may contain all sequences, but only the uniques are considered to become the representative. If your distance file contains all the sequences it would become weighted=true.\n";
-               helpString += "For weighted = true, mothur assumes the distance file contains only unique sequences, the list file must contain all sequences, all sequences are considered to become the representative, but unique name will be used in the output for consistency.\n";
-               helpString += "If your distance file contains all the sequence and you do not provide a name file, the weighted representative will be given, unless your listfile is unique. If you provide a namefile, then you can select weighted or unweighted.\n";
-               helpString += "The group parameter allows you provide a group file.\n";
-               helpString += "The groups parameter allows you to indicate that you want representative sequences for each group specified for each OTU, group name should be separated by dashes. ex. groups=A-B-C.\n";
-               helpString += "The get.oturep command outputs a .fastarep and .rep.names file for each distance you specify, selecting one OTU representative for each bin.\n";
-               helpString += "If you provide a groupfile, then it also appends the names of the groups present in that bin.\n";
-               helpString += "Note: No spaces between parameter labels (i.e. fasta), '=' and parameters (i.e.yourFastaFile).\n";
+               helpString += "The sens.spec command....\n";
                return helpString;
        }
        catch(exception& e) {
@@ -87,11 +69,8 @@ SensSpecCommand::SensSpecCommand(string option)  {
                
                else {
                        string temp;
-
-                       //valid paramters for this command
-                       string AlignArray[] =  {"list", "phylip", "column", "hard", "label", "cutoff", "precision", "outputdir", "inputdir"};
                        
-                       vector<string> myArray (AlignArray, AlignArray+(sizeof(AlignArray)/sizeof(string)));
+                       vector<string> myArray = setParameters();
                        
                        OptionParser parser(option);
                        map<string,string> parameters = parser.getParameters();
index 0a3dfc974f1d6ca45352b712efea37a2df02daf0..88c792c8b4b485bb8019a45fcac8c09f420511d6 100644 (file)
@@ -53,9 +53,7 @@ SetLogFileCommand::SetLogFileCommand(string option)  {
                if(option == "help") { help(); abort = true; calledHelp = true; }
                
                else {
-                       //valid paramters for this command
-                       string Array[] =  {"name","append","outputdir","inputdir"};
-                       vector<string> myArray (Array, Array+(sizeof(Array)/sizeof(string)));
+                       vector<string> myArray = setParameters();
                        
                        OptionParser parser(option);
                        map<string, string> parameters = parser.getParameters();
index 179424b3c9f395ce88774b00aa7f367581d8f775..d15354377efe906b7a6b10f45d6ca8dcd454a233 100644 (file)
@@ -75,9 +75,7 @@ SharedCommand::SharedCommand(string option)  {
                
                else {
                        
-                        //valid paramters for this command
-                        string Array[] =  {"list","label","group","groups","ordergroup","outputdir","inputdir"};
-                        vector<string> myArray (Array, Array+(sizeof(Array)/sizeof(string)));
+                        vector<string> myArray = setParameters();
                         
                         OptionParser parser(option);
                         map<string, string> parameters = parser.getParameters();
index f7490f73b3411e9335ba21fa329e6a9b0fc63c0c..9c514a9371ae37a24114c3eacf59424733040cfc 100644 (file)
@@ -84,9 +84,7 @@ SplitAbundCommand::SplitAbundCommand(string option)  {
                if(option == "help") { help(); abort = true; calledHelp = true; }
                
                else {
-                       //valid paramters for this command
-                       string Array[] =  {"name","group","list","label","accnos","groups","fasta","cutoff","outputdir","inputdir"}; //
-                       vector<string> myArray (Array, Array+(sizeof(Array)/sizeof(string)));
+                       vector<string> myArray = setParameters();
                        
                        OptionParser parser(option);
                        map<string, string> parameters = parser.getParameters();
index 81601a168a43875dcc20db786460bfa2cbc93faa..eef37bd93b4dcc98fbf2bcadee93231be66b52ab 100644 (file)
@@ -82,9 +82,7 @@ UnifracUnweightedCommand::UnifracUnweightedCommand(string option)  {
                if(option == "help") { help(); abort = true; calledHelp = true; }
                
                else {
-                       //valid paramters for this command
-                       string Array[] =  {"groups","iters","distance","random","root", "processors","outputdir","inputdir"};
-                       vector<string> myArray (Array, Array+(sizeof(Array)/sizeof(string)));
+                       vector<string> myArray = setParameters();
                        
                        OptionParser parser(option);
                        map<string,string> parameters = parser.getParameters();