src/matOptimize/apply_move/one_level_fitch_sankoff.cpp
//Copy over all valid mutations not present in any children (state shared by all children)
Copy over all valid mutations not present in any children (state shared by all children)
Copy over all valid mutations not present in any children ( state shared by all children )
static void
rewind_ori_mut_ploytomy(MAT::Mutations_Collection &new_major_alleles_out,
                        const mut_iter &iter, bool &changed) {
    if (iter->get_all_major_allele() != iter->get_mut_one_hot()) {
        changed = true;
    }
    if (iter->is_valid()) {
        new_major_alleles_out.push_back(*iter);
        new_major_alleles_out.back().set_auxillary(iter->get_mut_one_hot(), 0);
    }
}
static void rewind_ori_mut_ploytomy ( MAT :: Mutations_Collection & new_major_alleles_out , const mut_iter & iter , bool & changed ) { if ( iter -> get_all_major_allele ( ) != iter -> get_mut_one_hot ( ) ) { changed = true ; } if ( iter -> is_valid ( ) ) { new_major_alleles_out . push_back ( * iter ) ; new_major_alleles_out . back ( ) . set_auxillary ( iter -> get_mut_one_hot ( ) , 0 ) ; } }
Copy over all valid mutations not present in any children (state shared by all children)
Copy over all valid mutations not present in any children ( state shared by all children )