Debian Codegraph @

src/cxx/tools/ortho_true_vertices/OrthoUtils.hh

raw
1 /*
2 * File: OrthoUtils.hh
3 * Author: ikramu
4 *
5 * Created on October 22, 2012, 1:19 PM
6 */
7
8 #ifndef ORTHOUTILS_HH
9 #define ORTHOUTILS_HH
10
11 #include <iostream>
12 #include <Beep.hh>
13 #include <DLRSOrthoCalculator.hh>
14
15 // maximum size of characters in mcmc sample
16 #define SAMPLE_LENGTH 3000
17 #define BURN_IN 5000
18
19 /* Namespaces used */
20 using namespace std;
21 using namespace beep;
22 using namespace boost::algorithm;
23
24 class OrthoUtils {
25 public:
26 OrthoUtils();
27 OrthoUtils(const OrthoUtils& orig);
28 virtual ~OrthoUtils();
29
30
31 vector<string> get_leaves_from_true_file(string true_tree);
32
33 map<string, double> compute_ortho_single(string, string, double,
34 double, double, double, vector<string>);
35
36 void estimate_orthologies(string, string, string, vector<string>, vector<map<string, double> > &);
37
38 void get_data_from_sample(string, string &, double &, double &, double &, double &);
39
40 map<string, double> normalize_orthologies(vector<map<string, double> >);
41
42 void write_orthologies(map<string, double>, string);
43
44 vector<string> get_gene_pair_from_true_tree(string true_file);
45
46 void print_map(map<string, double> tmap);
47
48 void print_vector(vector<string> vec);
49
50 void set_orthology_map(vector<string> pairs);
51
52 private:
53 bool not_same_specie(string left_gene, string right_gene);
54 string get_specie_from_gene_name(string gene);
55
56 map<string, double> orthology_map;
57
58 };
59
60 #endif /* ORTHOUTILS_HH */
61