X-Git-Url: https://git.donarmstrong.com/?a=blobdiff_plain;f=pcoacommand.h;fp=pcoacommand.h;h=22f288a7e768a74c939781df1302e42b92124600;hb=4956d362c5bc6a47cf7a6290258f0e763e3a406e;hp=0000000000000000000000000000000000000000;hpb=5694c92fbf646fe01abc87bde2af59e14a9a56b6;p=mothur.git diff --git a/pcoacommand.h b/pcoacommand.h new file mode 100644 index 0000000..22f288a --- /dev/null +++ b/pcoacommand.h @@ -0,0 +1,53 @@ +#ifndef PCACOMMAND_H +#define PCACOMMAND_H + +/* + * pcacommand.h + * Mothur + * + * Created by westcott on 1/4/10. + * Copyright 2010 Schloss Lab. All rights reserved. + * + */ + +#include "command.hpp" + + +/*****************************************************************/ +class PCACommand : public Command { + +public: + PCACommand(string); + PCACommand(); + ~PCACommand(); + vector getRequiredParameters(); + vector getValidParameters(); + vector getRequiredFiles(); + map > getOutputFiles() { return outputTypes; } + int execute(); + void help(); + +private: + + bool abort; + string phylipfile, columnfile, namefile, format, filename, fbase, outputDir; + float cutoff, precision; + vector outputNames; + map > outputTypes; + + void get_comment(istream&, char, char); + int read_phylip(istream&, int, vector&, vector >&); + void read(string, vector&, vector >&); + double pythag(double, double); + void matrix_mult(vector >, vector >, vector >&); + void recenter(double, vector >, vector >&); + void tred2(vector >&, vector&, vector&); + void qtli(vector&, vector&, vector >&); + void output(string, vector, vector >, vector); + +}; + +/*****************************************************************/ + +#endif +