1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60
|
#ifndef Mothur_getotulabelscommand_h
#define Mothur_getotulabelscommand_h
//
// getotuscommand.h
// Mothur
//
// Created by Sarah Westcott on 5/21/12.
// Copyright (c) 2012 Schloss Lab. All rights reserved.
//
#include "command.hpp"
#include "inputdata.h"
#include "listvector.hpp"
/**************************************************************************************************/
class GetOtusCommand : public Command {
public:
GetOtusCommand(string);
~GetOtusCommand(){}
vector<string> setParameters();
string getCommandName() { return "get.otus"; }
string getCommandCategory() { return "OTU-Based Approaches"; }
string getHelpString();
string getOutputPattern(string);
string getCitation() { return "http://www.mothur.org/wiki/Get.otus"; }
string getDescription() { return "Can be used with output from classify.otu, otu.association, or corr.axes to select specific otus."; }
int execute();
void help() { m->mothurOut(getHelpString()); }
private:
bool abort;
string accnosfile, constaxonomyfile, otucorrfile, corraxesfile, listfile, sharedfile, label;
vector<string> outputNames;
unordered_set<string> labels;
ListVector* list;
int readClassifyOtu();
int readOtuAssociation();
int readCorrAxes();
int readList();
int readShared();
int getListVector();
SharedRAbundVectors* getShared();
};
/**************************************************************************************************/
#endif
|