8 * Created by westcott on 1/4/10.
9 * Copyright 2010 Schloss Lab. All rights reserved.
13 #include "command.hpp"
16 /*****************************************************************/
17 class PCACommand : public Command {
28 string phylipfile, columnfile, namefile, format, filename, fbase;
29 float cutoff, precision;
32 void get_comment(istream&, char, char);
33 void read_mega(istream&, int, vector<string>&, vector<vector<double> >&);
34 void read_phylip(istream&, int, vector<string>&, vector<vector<double> >&);
35 void read(string, int, vector<string>&, vector<vector<double> >&);
36 double pythag(double, double);
37 void matrix_mult(vector<vector<double> >, vector<vector<double> >, vector<vector<double> >&);
38 void recenter(double, vector<vector<double> >, vector<vector<double> >&);
39 void tred2(vector<vector<double> >&, vector<double>&, vector<double>&);
40 void qtli(vector<double>&, vector<double>&, vector<vector<double> >&);
41 void output(string, vector<string>, vector<vector<double> >, vector<double>);
42 void print_matrix(vector<vector<double> >);
46 /*****************************************************************/