CAFE
Computational Analysis of gene Family Evolution
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
error_model.h
Go to the documentation of this file.
1 #ifndef ERROR_MODEL_H_D4D61013_69C7_4426_B2D4_84389690EA75
2 #define ERROR_MODEL_H_D4D61013_69C7_4426_B2D4_84389690EA75
3 
4 #include <string>
5 #include <iosfwd>
6 
7 extern "C" {
8 #include "cafe.h"
9 #include "cafe_shell.h"
10 }
11 
12 pErrorStruct get_error_model(pCafeFamily family, std::string filename);
13 int set_error_matrix_from_file(pCafeFamily family, pCafeTree pTree, family_size_range& range, std::string filename, std::string speciesname);
14 int remove_error_model(pCafeFamily family, pCafeTree pcafe, std::string species_name);
15 void free_error_model(pCafeFamily family, pCafeTree pcafe);
16 void init_error_ptr(pCafeFamily family, pCafeTree pTree, pErrorStruct errormodel, std::string speciesname);
17 
18 std::ostream& operator<<(std::ostream& ost, ErrorStruct& errormodel);
19 std::istream& operator>>(std::istream& ifst, ErrorStruct& errormodel);
20 
21 pErrorMeasure estimate_error_double_measure(std::ostream& log, std::istream* ist1, std::istream* ist2, int b_symmetric, int max_diff, int b_peakzero, int maxFamilySize);
22 pErrorMeasure estimate_error_true_measure(std::ostream& log, const char* errorfile, const char* truefile, int b_symmetric, int max_diff, int b_peakzero, int max_family_size);
23 void read_freq_from_measures(std::istream* ist1, std::istream* ist2, int* sizeFreq, int& maxFamilySize);
24 void read_error_double_measure(std::istream& ist1, std::istream& ist2, int** observed_pairs, int maxFamilySize);
25 void get_size_probability_distribution(int maxFamilySize, int *sizeFreq, double* sizeDist);
26 
27 
28 #endif
void free_error_model(pCafeFamily family, pCafeTree pcafe)
Definition: error_model.cpp:279
std::ostream & operator<<(std::ostream &ost, ErrorStruct &errormodel)
Definition: error_model.cpp:117
int set_error_matrix_from_file(pCafeFamily family, pCafeTree pTree, family_size_range &range, std::string filename, std::string speciesname)
Definition: error_model.cpp:231
pErrorStruct get_error_model(pCafeFamily family, std::string filename)
Definition: error_model.cpp:101
void get_size_probability_distribution(int maxFamilySize, int *sizeFreq, double *sizeDist)
Definition: error_model.cpp:548
int remove_error_model(pCafeFamily family, pCafeTree pcafe, std::string species_name)
Definition: error_model.cpp:261
Definition: family.h:10
void read_error_double_measure(std::istream &ist1, std::istream &ist2, int **observed_pairs, int maxFamilySize)
Definition: error_model.cpp:365
void init_error_ptr(pCafeFamily family, pCafeTree pTree, pErrorStruct errormodel, std::string speciesname)
Definition: error_model.cpp:206
void read_freq_from_measures(std::istream *ist1, std::istream *ist2, int *sizeFreq, int &maxFamilySize)
Definition: error_model.cpp:295
Definition: family.h:31
pErrorMeasure estimate_error_double_measure(std::ostream &log, std::istream *ist1, std::istream *ist2, int b_symmetric, int max_diff, int b_peakzero, int maxFamilySize)
Definition: error_model.cpp:568
Definition: cafe_shell.h:14
Definition: tree.h:11
std::istream & operator>>(std::istream &ifst, ErrorStruct &errormodel)
Definition: error_model.cpp:145
Structure representing a matrix of values of family sizes.
Definition: family.h:88
Definition: family.h:17
pErrorMeasure estimate_error_true_measure(std::ostream &log, const char *errorfile, const char *truefile, int b_symmetric, int max_diff, int b_peakzero, int max_family_size)
Definition: error_model.cpp:679