26 const double phase1_fraction = 1.0/650;
45 progress.
subtitle(
"Counting mutations");
51 AP_pos_var pvp(gb_main, ali_name, ali_len, isNUC, tree_name);
54 if (!error) error = pvp.
retrieve(tree);
86 return that(saidata).is_equal_to(expected_data);
99 return that(saitype).is_equal_to(expected_type);
102 #define TEST_EXPECT_SAIDATA_EQUAL(expected) TEST_EXPECTATION(saidata_equal(gb_main,SAI_name,aliname,expected))
103 #define TEST_EXPECT_SAITYPE_EQUAL(expected) TEST_EXPECTATION(saitype_equal(gb_main,SAI_name,aliname,expected))
107 const char *SAI_name =
"POS_VAR_BY_PARSIMONY";
111 const char *aliname =
"ali_16s";
114 TEST_EXPECT_SAITYPE_EQUAL(
"PVP: Positional Variability by Parsimony: tree 'tree_nuc' ntaxa 12");
115 TEST_EXPECT_SAIDATA_EQUAL(
".----222----7------32-7-7----774-----77-----747-77-7-47-----------73--433-.3134--1-41-4-4011222337--"
116 "....-632320124--11141-4-..24312434--3----7-77---7----774-4-4-34--44-77-732777424--7-----3247------44"
117 "33----------2--73063442221633737777326110244-3----73--2--4-773--4-7--3774777137-7774437274-3372--7--"
118 "--7------47-7---24--73--------2-4--7374---74-734------43-777-47-7---3---3----------7-3---3----------"
119 "-----7-----4-7----7--4-4------3--3---3----4-4---4-47-------77---4-----447-7--4-7-----377--7-7434373-"
120 "-77--5412243422747--7-441244321337--777--3434333-77---777---------7------------7-----------7---77--4"
121 "-7----477----4---7-----------4-774-4---7--742237-7-777-7---4---327447----4----43477423-----447-7--77"
122 "21234--7---7477-77777-727777---7-3--4---77------7------7---4--4--4-4---7---7------------47727--47777"
123 "4477-----7--4-7747-------47---7-7-7--------------------------74--7----------43-7--7477-774734-6----7"
124 "47---6-42-447-774-4--------77-----7-34-------7-------747------77-7---------4------------4-----------"
125 "7-----------------------4--4---7-.---7--------74437-------7-3424-732233427--7-72333127-6.--7777---6-"
126 "-424347-------7-------47--------------77----77---------------7------------------77437-77------4-743-"
127 "77-3-77---7----7-3377-------7-7-74--7-7---------7-7---4-------74---7----7------7-3447----7----------"
128 "--------2443----7777-33--2-4444-7--44437---37---7746----34447-47---7----7--4--4----------4--4--7----"
129 "44-----7---------7-4777-----3-77774-7------------7----47---------------------7--7-47---47-774777744-"
130 "--34-7-44227----3...7712.1----123-7742-4-777774-7774----4-3--7--------------------77--447--744--77-7"
131 "---------------3-...");
142 const char *aliname =
"ali_tuf_pro";
145 TEST_EXPECT_SAITYPE_EQUAL(
"PVP: Positional Variability by Parsimony: tree 'tree_prot' ntaxa 11");
146 TEST_EXPECT_SAIDATA_EQUAL(
"-----4-634363-4-3-4666----6--6-6-6666466666664666466666-43-34366633334446-4666-364-6--66666664-44646"
147 "666-4---4-66---6--66-4-66-6666444-6666466666--4--4--6466633346-62--3-3436343243266464433446433434662"
148 "2-4634-663466644346314-23364666646243343-6366-34632-0632-46646-666-43-6-6---46-46-3-3432-32634464334"
149 "443636666-66461612636----64664642421634-3-33444443632334-1-3-64-44664646634-433366666623624426246444"
150 "4436330334446-63434344622344666320664664--666643--66-446341446--6------6--466----------");
GBDATA * GB_open(const char *path, const char *opent)
TreeNode * GBT_read_tree(GBDATA *gb_main, const char *tree_name, TreeRoot *troot)
long GBT_get_alignment_len(GBDATA *gb_main, const char *aliname)
GB_ERROR GBT_link_tree(TreeNode *tree, GBDATA *gb_main, bool show_status, int *zombies, int *duplicates)
GBDATA * GBT_find_SAI(GBDATA *gb_main, const char *name)
GB_ERROR GB_await_error()
GB_ERROR save_aliEntry_to_SAI(const char *sai_name)
GB_ERROR delete_aliEntry_from_SAI(const char *sai_name)
static void error(const char *msg)
GB_alignment_type GBT_get_alignment_type(GBDATA *gb_main, const char *aliname)
GB_ERROR PVP_calculate(GBDATA *gb_main, const char *ali_name, const char *tree_name, const char *target_SAI_name)
static SearchTree * tree[SEARCH_PATTERNS]
GB_ERROR retrieve(TreeNode *tree)
GB_ERROR close(GB_ERROR error)
void subtitle(const char *stitle)
#define TEST_EXPECT_NO_ERROR(call)
#define TEST_EXPECT_ERROR_CONTAINS(call, part)
GB_transaction ta(gb_var)
void destroy(TreeNode *that)
GB_CSTR GB_read_char_pntr(GBDATA *gbd)
GBDATA * GB_entry(GBDATA *father, const char *key)
void inc_and_check_user_abort(GB_ERROR &error)
void GB_close(GBDATA *gbd)