CAFE
Computational Analysis of gene Family Evolution
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
error_model.h File Reference
#include <string>
#include <iosfwd>
#include "cafe.h"
#include "cafe_shell.h"

Go to the source code of this file.

Functions

pErrorStruct get_error_model (pCafeFamily family, std::string filename)
 
int set_error_matrix_from_file (pCafeFamily family, pCafeTree pTree, family_size_range &range, std::string filename, std::string speciesname)
 
int remove_error_model (pCafeFamily family, pCafeTree pcafe, std::string species_name)
 
void free_error_model (pCafeFamily family, pCafeTree pcafe)
 
void init_error_ptr (pCafeFamily family, pCafeTree pTree, pErrorStruct errormodel, std::string speciesname)
 
std::ostream & operator<< (std::ostream &ost, ErrorStruct &errormodel)
 
std::istream & operator>> (std::istream &ifst, ErrorStruct &errormodel)
 
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)
 
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)
 
void read_freq_from_measures (std::istream *ist1, std::istream *ist2, int *sizeFreq, int &maxFamilySize)
 
void read_error_double_measure (std::istream &ist1, std::istream &ist2, int **observed_pairs, int maxFamilySize)
 
void get_size_probability_distribution (int maxFamilySize, int *sizeFreq, double *sizeDist)
 

Function Documentation

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 
)
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 
)
void free_error_model ( pCafeFamily  family,
pCafeTree  pcafe 
)
pErrorStruct get_error_model ( pCafeFamily  family,
std::string  filename 
)
void get_size_probability_distribution ( int  maxFamilySize,
int *  sizeFreq,
double *  sizeDist 
)
void init_error_ptr ( pCafeFamily  family,
pCafeTree  pTree,
pErrorStruct  errormodel,
std::string  speciesname 
)
std::ostream& operator<< ( std::ostream &  ost,
ErrorStruct errormodel 
)
std::istream& operator>> ( std::istream &  ifst,
ErrorStruct errormodel 
)
void read_error_double_measure ( std::istream &  ist1,
std::istream &  ist2,
int **  observed_pairs,
int  maxFamilySize 
)
void read_freq_from_measures ( std::istream *  ist1,
std::istream *  ist2,
int *  sizeFreq,
int &  maxFamilySize 
)
int remove_error_model ( pCafeFamily  family,
pCafeTree  pcafe,
std::string  species_name 
)
int set_error_matrix_from_file ( pCafeFamily  family,
pCafeTree  pTree,
family_size_range range,
std::string  filename,
std::string  speciesname 
)