X-Git-Url: http://woldlab.caltech.edu/gitweb/?p=mussa.git;a=blobdiff_plain;f=alg%2Fmussa.cpp;h=0b93e99d24da3ec3e543e3e0e5cde8ad35678cef;hp=b538eccf0946bc8f992c62ea8cb81f8b6269c550;hb=de84c0a72c8d284e3d124d38699ac065ffe37e3c;hpb=38969cafcdba2b1922452e3255c91dedd178c71c diff --git a/alg/mussa.cpp b/alg/mussa.cpp index b538ecc..0b93e99 100644 --- a/alg/mussa.cpp +++ b/alg/mussa.cpp @@ -198,11 +198,13 @@ void Mussa::set_soft_threshold(int new_threshold) { if (new_threshold < threshold) { - soft_thres = threshold; + new_threshold = threshold; } else if (new_threshold > window) { - soft_thres = window; - } else { + new_threshold = window; + } + if (soft_thres != new_threshold) { soft_thres = new_threshold; + nway(); } } @@ -375,10 +377,6 @@ void Mussa::load_sequence(fs::path seq_file, fs::path annot_file, set_dirty(true); } -void Mussa::load_mupa_file(std::string para_file_path) { - load_mupa_file(boost::filesystem::path(para_file_path)); -} - void Mussa::load_mupa_file(fs::path para_file_path) {