1 #ifndef CAFE_COMMANDS_H_B2201016_8693_4379_9225_8FFEC3562AFE
2 #define CAFE_COMMANDS_H_B2201016_8693_4379_9225_8FFEC3562AFE
29 #define MAKE_FN_NAME(x) int cafe_cmd_##x (Globals& globals, std::vector<std::string>)
30 #define COMMAND(signal) MAKE_FN_NAME(signal)
44 COMMAND(generate_random_family);
75 std::vector<int>
get_clusters(
int parameterized_k_value,
int num_families,
double* k_weights);
160 io_error(std::string source, std::string file,
bool write);
163 virtual const char*
what()
const throw()
viterbi_args get_viterbi_arguments(std::vector< Argument > pargs)
int argc
Definition: cafe_commands.h:18
Definition: cafe_commands.h:156
void run_viterbi_sim(pCafeTree pcafe, pCafeFamily pfamily, roots &roots)
Definition: cafe_commands.cpp:1180
virtual const char * what() const
Definition: cafe_commands.h:163
pvalue_args get_pvalue_arguments(std::vector< Argument > pargs)
int write_family_gainloss(std::ostream &ofst, std::string family_id, pCafeTree tree1, pCafeTree tree2)
bool peakzero
Definition: cafe_commands.h:120
int num_random_samples
Definition: cafe_commands.h:85
int get_num_trials(std::vector< std::string > args)
pHistogram * phist_data
Definition: cafe_commands.h:140
void write_leaves(std::ostream &ofst, pCafeTree pcafe, int *k, int i, int id, bool evens)
io_error(std::string source, std::string file, bool write)
Definition: cafe_commands.cpp:228
std::string tree
Definition: cafe_commands.h:110
int total_extinct
Definition: cafe_commands.h:138
std::string family_file_name
Definition: cafe_commands.h:90
std::vector< int > num
Definition: cafe_commands.h:136
const int REQUIRES_LAMBDA
Definition: cafe_commands.h:151
void validate(esterror_args args)
Definition: cafe_commands.cpp:1616
Definition: cafe_commands.h:93
double simerror(pCafeFamily pcf, std::string prefix, int repeat)
Definition: simerror.cpp:128
int num_threads
Definition: cafe_commands.h:84
std::string outfile
Definition: cafe_commands.h:111
double pvalue
Definition: cafe_commands.h:87
load_args get_load_arguments(std::vector< Argument > pargs)
void log_param_values(std::ostream &ost, Globals &globals)
Definition: cafe_commands.cpp:1845
int idx
Definition: cafe_commands.h:96
double lambda
Definition: cafe_commands.h:112
std::string outfile
Definition: cafe_commands.h:103
void clear_tree_viterbis(pCafeTree psum)
Definition: cafe_commands.cpp:422
std::string infile
Definition: cafe_commands.h:102
std::string item_id
Definition: cafe_commands.h:97
std::vector< double > avg_extinct
Definition: cafe_commands.h:137
void write_node_headers(std::ostream &s1, std::ostream &s2, pCafeTree pcafe)
Definition: cafe_commands.h:132
std::string truth_file
Definition: cafe_commands.h:121
string version
Definition: conf.py:69
Definition: cafe_commands.h:15
std::vector< int > get_clusters(int parameterized_k_value, int num_families, double *k_weights)
Definition: cafe_commands.cpp:647
bool filter
Definition: cafe_commands.h:88
int init_histograms(int rfsize, roots &roots, int nsamples)
Definition: cafe_commands.cpp:1203
esterror_args get_esterror_arguments(std::vector< Argument > pargs)
const int REQUIRES_TREE
Definition: cafe_commands.h:150
bool all
Definition: cafe_commands.h:94
pHistogram * phist_sim
Definition: cafe_commands.h:141
Argument * pArgument
Definition: cafe_commands.h:22
std::string directory
Definition: cafe_commands.h:109
std::vector< double > extinct
Definition: cafe_commands.h:134
std::string log_file_name
Definition: cafe_commands.h:89
viterbi_parameters * viterbi
Definition: Globals.h:23
void write_family(std::ostream &ost, pCafeFamily family)
std::string outfile
Definition: cafe_commands.h:117
int(* cafe_command2)(Globals &globals, std::vector< std::string >)
Definition: cafe_commands.h:27
void tree_set_branch_lengths(pCafeTree pcafe, std::vector< int > lengths)
Definition: cafe_commands.cpp:1703
bool symmetric
Definition: cafe_commands.h:119
const int REQUIRES_ERRORMODEL
Definition: cafe_commands.h:152
Definition: cafe_commands.h:107
int index
Definition: cafe_commands.h:104
Singleton structure that holds all of the global data that Cafe acts on.
Definition: family.h:115
const int REQUIRES_FAMILY
Definition: cafe_commands.h:149
char ** argv
Definition: cafe_commands.h:19
Definition: cafe_commands.h:115
std::map< std::string, cafe_command2 > get_dispatcher()
Holds the list of commands that are available in Cafe.
Definition: cafe_commands.cpp:173
std::vector< int > size
Definition: cafe_commands.h:135
void viterbi_write(std::ostream &ost, pCafeTree pcafe, pCafeFamily pfamily)
double pvalue(double v, const double *conddist, int size)
Definition: mathfunc.c:663
#define COMMAND(signal)
Definition: cafe_commands.h:30
virtual ~io_error()
Definition: cafe_commands.h:161
tuple args
Definition: mcl2rawcafe.py:48
std::vector< std::string > data_error_files
Definition: cafe_commands.h:118
int max_diff
Definition: cafe_commands.h:122
void prereqs(pCafeParam param, int flags)
Definition: cafe_commands.cpp:459
std::string file
Definition: cafe_commands.h:95
Definition: cafe_commands.h:83
std::string opt
Definition: cafe_commands.h:17
lhtest_args get_lhtest_arguments(std::vector< Argument > pargs)
Structure representing a matrix of values of family sizes.
Definition: family.h:88
Definition: cafe_commands.h:100
int cafe_shell_dispatch_command(Globals &globals, char *cmd)
Definition: cafe_commands.cpp:503
Definition: mathfunc.h:108
void get_doubles_array(std::vector< double > &loc, pArgument parg)
void list_commands(std::ostream &ost)
Definition: cafe_commands.cpp:389
std::vector< Argument > build_argument_list(std::vector< std::string > tokens)
void write_version(std::ostream &ost)
int max_size
Definition: cafe_commands.h:86