X-Git-Url: https://git.donarmstrong.com/?a=blobdiff_plain;f=removeseqscommand.h;fp=removeseqscommand.h;h=df96e4514bc84787ad901e137bbc794588681705;hb=0caf3fbabaa3ece404f8ce77f4c883dc5b1bf1dc;hp=0000000000000000000000000000000000000000;hpb=1b73ff67c83892a025e597dabd9df6fe7b58206a;p=mothur.git diff --git a/removeseqscommand.h b/removeseqscommand.h new file mode 100644 index 0000000..df96e45 --- /dev/null +++ b/removeseqscommand.h @@ -0,0 +1,52 @@ +#ifndef REMOVESEQSCOMMAND_H +#define REMOVESEQSCOMMAND_H + +/* + * removeseqscommand.h + * Mothur + * + * Created by Sarah Westcott on 7/8/09. + * Copyright 2009 Schloss Lab UMASS Amherst. All rights reserved. + * + */ + +#include "command.hpp" + +class RemoveSeqsCommand : public Command { + + public: + + RemoveSeqsCommand(string); + RemoveSeqsCommand(); + ~RemoveSeqsCommand(){} + + vector setParameters(); + string getCommandName() { return "remove.seqs"; } + string getCommandCategory() { return "Sequence Processing"; } + string getHelpString(); + string getCitation() { return "http://www.mothur.org/wiki/Remove.seqs"; } + string getDescription() { return "removes sequences from a list, fasta, name, group, alignreport, quality or taxonomy file"; } + + int execute(); + void help() { m->mothurOut(getHelpString()); } + + + private: + set names; + string accnosfile, fastafile, namefile, groupfile, alignfile, listfile, taxfile, qualfile, outputDir; + bool abort, dups; + vector outputNames; + + int readFasta(); + int readName(); + int readGroup(); + int readAlign(); + void readAccnos(); + int readList(); + int readTax(); + int readQual(); + +}; + +#endif +