X-Git-Url: https://git.donarmstrong.com/?a=blobdiff_plain;f=splitabundcommand.h;h=232c36ba36763dcdb325fb9f8404d537e92450a6;hb=49d2b7459c5027557564b21e9487dadafbbbdc96;hp=8d2ab2e0503416a9e9e48fb49162a63e794c0191;hpb=cfe70bbc94980a0177af465d3464db754673bd56;p=mothur.git diff --git a/splitabundcommand.h b/splitabundcommand.h index 8d2ab2e..232c36b 100644 --- a/splitabundcommand.h +++ b/splitabundcommand.h @@ -21,6 +21,7 @@ also allow an option where a user can give a group file with the list or names f #include "groupmap.h" #include "inputdata.h" #include "listvector.hpp" +#include "sequence.hpp" /***************************************************************************************/ @@ -28,24 +29,43 @@ class SplitAbundCommand : public Command { public: SplitAbundCommand(string); + SplitAbundCommand(); ~SplitAbundCommand(); - int execute(); - void help(); - + + vector setParameters(); + string getCommandName() { return "split.abund"; } + string getCommandCategory() { return "OTU-Based Approaches"; } + string getOutputFileNameTag(string, string); + string getHelpString(); + string getCitation() { return "http://www.mothur.org/wiki/Split.abund"; } + string getDescription() { return "split a list, name, group or fasta file based on abundance"; } + + int execute(); + void help() { m->mothurOut(getHelpString()); } private: - int split(ListVector*); - int split(); //namefile + int splitList(ListVector*); + int splitNames(); //namefile + int writeNames(); + int writeList(ListVector*, string); + int writeAccnos(string); + int parseGroup(string); + int parseFasta(string); + int readNamesFile(); //namefile + int createNameMap(ListVector*); vector outputNames; ListVector* list; GroupMap* groupMap; InputData* input; - string outputDir, listfile, namefile, groupfile, label; - set labels; - bool abort, allLines, accnos, wroteRareList, wroteAbundList; + string outputDir, listfile, namefile, groupfile, label, groups, fastafile, inputFile; + set labels, rareNames, abundNames; + vector Groups; + bool abort, allLines, accnos; int cutoff; + //map wroteListFile; + map nameMap;