Skip to content

Commit

Permalink
[MISC] Remove the static distinction of "true" global alignments.
Browse files Browse the repository at this point in the history
Co-authored-by: Marcel <[email protected]>
  • Loading branch information
smehringer and marehr authored Aug 25, 2020
1 parent 01d5e94 commit ac02a31
Showing 1 changed file with 0 additions and 16 deletions.
16 changes: 0 additions & 16 deletions include/seqan3/alignment/pairwise/alignment_configurator.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -623,22 +623,6 @@ constexpr function_wrapper_t alignment_configurator::configure_free_ends_initial
// Make initialisation policy a deferred CRTP base and delegate to configure the find optimum policy.
using gap_init_policy_t = deferred_crtp_base<affine_gap_init_policy, policy_trait_type>;

if constexpr (traits_t::is_global && !config_t::template exists<seqan3::align_cfg::aligned_ends>())
{
auto method_global_cfg = cfg.get_or(align_cfg::method_global{});

if (method_global_cfg.free_end_gaps_sequence1_leading ||
method_global_cfg.free_end_gaps_sequence1_trailing ||
method_global_cfg.free_end_gaps_sequence2_leading ||
method_global_cfg.free_end_gaps_sequence2_trailing)
{
// append an extra aligned_ends configuration for static configuration that is needed in
// configure_free_ends_optimum_search (within select_find_optimum_policy)
auto ends_config = seqan3::align_cfg::aligned_ends{seqan3::free_ends_none};
return configure_free_ends_optimum_search<function_wrapper_t, policies_t..., gap_init_policy_t>(cfg | ends_config);
}
}

return configure_free_ends_optimum_search<function_wrapper_t, policies_t..., gap_init_policy_t>(cfg);
};

Expand Down

0 comments on commit ac02a31

Please sign in to comment.