void
NwayPaths::trans_path_search(vector<vector<FLPs> > all_comparisons)
{
+ if (all_comparisons.size() == 0 or all_comparisons[0].size() == 0)
+ return;
vector<int> path;
int win_i, window_num;
bool still_paths;
cout << "window number = " << window_num << endl; // just a sanity check
cout << "trans: comparison size= " << all_comparisons.size() << endl;
// loop thru all windows in first species
- for (win_i = 0; win_i < window_num; win_i++)
+ for (win_i = 0; win_i != window_num; win_i++)
{
// if 1st seq has a match to all the others for this window,
// then make all possible paths out of all these matches (in all_matches)
BOOST_CHECK_EQUAL( analysis.sequences()[2].get_seq(), s2);
}
+// for some reason we can call nway once safely but it
+// somehow changed things and caused a segfault
+// fixed by adding a return statement in trans_path_search
+BOOST_AUTO_TEST_CASE ( empty_mussa_set_threshold )
+{
+ Mussa m;
+ m.set_soft_thres(15);
+ m.nway();
+
+ m.set_soft_thres(25);
+ m.nway();
+}
+
#include <unistd.h>
BOOST_AUTO_TEST_CASE( mussa_load_mupa )
{
m = mussa.Mussa()
#m.load_mupa("examples/mck3test.mupa")
#m.analyze(0, 0, mussa.analysis_modes.TransitiveNway, 0)
-m.load("../mussa_analyses/land/myogenin_w30_t21")
+m.load("../../mussa_analyses/land/myogenin_w30_t21")
path = m.paths()
count = 0