/* * File: OrthoUtils.hh * Author: ikramu * * Created on October 22, 2012, 1:19 PM */ #ifndef ORTHOUTILS_HH #define ORTHOUTILS_HH #include #include #include // maximum size of characters in mcmc sample #define SAMPLE_LENGTH 3000 #define BURN_IN 5000 /* Namespaces used */ using namespace std; using namespace beep; using namespace boost::algorithm; class OrthoUtils { public: OrthoUtils(); OrthoUtils(const OrthoUtils& orig); virtual ~OrthoUtils(); vector get_leaves_from_true_file(string true_tree); map compute_ortho_single(string, string, double, double, double, double, vector); void estimate_orthologies(string, string, string, vector, vector > &); void get_data_from_sample(string, string &, double &, double &, double &, double &); map normalize_orthologies(vector >); void write_orthologies(map, string); vector get_gene_pair_from_true_tree(string true_file); void print_map(map tmap); void print_vector(vector vec); void set_orthology_map(vector pairs); private: bool not_same_specie(string left_gene, string right_gene); string get_specie_from_gene_name(string gene); map orthology_map; }; #endif /* ORTHOUTILS_HH */