CAFE
Computational Analysis of gene Family Evolution
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
cross_validator.h
Go to the documentation of this file.
1 #ifndef CROSS_VALIDATOR_H_F3DD8C50_D7E9_479F_A19D_4D1CBF4F5190
2 #define CROSS_VALIDATOR_H_F3DD8C50_D7E9_479F_A19D_4D1CBF4F5190
3 
4 #include <string>
5 
6 extern "C" {
7 #include "cafe.h"
8 }
9 
11 {
12  char* cv_species_name;
13  pArrayList cv_test_species_list;
14  pArrayList cv_test_count_list;
15 
16  void read_validate_species(const char* file);
17  void read_query_family(const char* file);
18 public:
19  void clean_by_family(std::string file, int cv_fold);
20  void clean_by_species(std::string file);
21  double validate_by_species(pCafeParam param, const char* validatefile, const char* errortype);
22  double validate_by_family(pCafeParam param, const char* queryfile, const char* truthfile, const char* errortype);
23 
24  std::string get_species_name() const { return cv_species_name; }
25 };
26 
27 #endif
void clean_by_family(std::string file, int cv_fold)
Definition: cross_validator.cpp:8
Definition: cross_validator.h:10
void clean_by_species(std::string file)
Definition: cross_validator.cpp:37
std::string get_species_name() const
Definition: cross_validator.h:24
Singleton structure that holds all of the global data that Cafe acts on.
Definition: family.h:115
Definition: utils.h:12
double validate_by_family(pCafeParam param, const char *queryfile, const char *truthfile, const char *errortype)
Definition: cross_validator.cpp:250
double validate_by_species(pCafeParam param, const char *validatefile, const char *errortype)
Definition: cross_validator.cpp:192