40 static_assert(!std::same_as<alignment_result_type, empty_type>,
"Alignment result type was not configured.");
72 template <indexed_sequence_pair_range indexed_sequence_pairs_t,
typename callback_t>
73 requires std::invocable<callback_t, alignment_result_type>
102 this->optimal_coordinate,
109 template <indexed_sequence_pair_range indexed_sequence_pairs_t,
typename callback_t>
128 this->scoring_scheme.padding_symbol);
131 this->scoring_scheme.padding_symbol);
145 - (this->padding_offsets[index] * this->scoring_scheme.padding_match_score());
146 matrix_coordinate coordinate{
row_index_type{
size_t{this->optimal_coordinate.row[index]}},
151 std::move(coordinate),
216 requires std::ranges::forward_range<std::ranges::range_reference_t<alignment_matrix_t>>
217 && std::ranges::forward_range<std::ranges::range_reference_t<index_matrix_t>>
227 this->reset_optimum();
232 using row_index_t = std::ranges::range_difference_t<sequence2_t>;
233 using column_index_t = std::ranges::range_difference_t<sequence1_t>;
272 auto alignment_column_it = alignment_column.begin();
336 template <std::ranges::forward_range alignment_column_t,
355 cell = this->track_cell(
356 this->initialise_band_first_cell(
cell.best_score(),
369 cell = this->track_cell(this->compute_inner_cell(
cell.best_score(),
Allocates uninitialized storage whose memory-alignment is specified by alignment.
Definition aligned_allocator.hpp:70
The alignment algorithm type to compute the banded standard pairwise alignment using dynamic programm...
Definition pairwise_alignment_algorithm_banded.hpp:30
pairwise_alignment_algorithm_banded()=default
Defaulted.
pairwise_alignment_algorithm_banded & operator=(pairwise_alignment_algorithm_banded const &)=default
Defaulted.
void compute_matrix(sequence1_t &&sequence1, sequence2_t &&sequence2, alignment_matrix_t &&alignment_matrix, index_matrix_t &&index_matrix)
Compute the actual banded alignment.
Definition pairwise_alignment_algorithm_banded.hpp:218
pairwise_alignment_algorithm_banded(pairwise_alignment_algorithm_banded &&)=default
Defaulted.
pairwise_alignment_algorithm_banded(pairwise_alignment_algorithm_banded const &)=default
Defaulted.
::is_vectorised &&std::invocable< callback_t, alignment_result_type > auto operator()(indexed_sequence_pairs_t &&indexed_sequence_pairs, callback_t &&callback)
This is an overloaded member function, provided for convenience. It differs from the above function o...
Definition pairwise_alignment_algorithm_banded.hpp:111
pairwise_alignment_algorithm_banded(alignment_configuration_t const &config)
Constructs and initialises the algorithm using the alignment configuration.
Definition pairwise_alignment_algorithm_banded.hpp:64
pairwise_alignment_algorithm_banded & operator=(pairwise_alignment_algorithm_banded &&)=default
Defaulted.
void operator()(indexed_sequence_pairs_t &&indexed_sequence_pairs, callback_t &&callback)
Computes the pairwise sequence alignment for the given range over indexed sequence pairs.
Definition pairwise_alignment_algorithm_banded.hpp:74
void compute_band_column(alignment_column_t &&alignment_column, cell_index_column_t &&cell_index_column, alphabet1_t const &alphabet1, sequence2_t &&sequence2)
Computes a column of the band that does not start in the first row of the alignment matrix.
Definition pairwise_alignment_algorithm_banded.hpp:340
~pairwise_alignment_algorithm_banded()=default
Defaulted.
The alignment algorithm type to compute standard pairwise alignment using dynamic programming.
Definition pairwise_alignment_algorithm.hpp:44
typename traits_type::score_type score_type
The configured score type.
Definition pairwise_alignment_algorithm.hpp:49
void compute_column(alignment_column_t &&alignment_column, cell_index_column_t &&cell_index_column, alphabet1_t const &alphabet1, sequence2_t &&sequence2)
Initialise any column of the alignment matrix except the first one.
Definition pairwise_alignment_algorithm.hpp:365
alignment_configuration_traits< alignment_configuration_t > traits_type
The alignment configuration traits type with auxiliary information extracted from the configuration t...
Definition pairwise_alignment_algorithm.hpp:47
void initialise_column(alignment_column_t &&alignment_column, cell_index_column_t &&cell_index_column, sequence2_t &&sequence2)
Initialise the first column of the alignment matrix.
Definition pairwise_alignment_algorithm.hpp:312
void convert_batch_of_sequences_to_simd_vector(simd_sequence_t &simd_sequence, sequence_collection_t &sequences, padding_symbol_t const &padding_symbol)
Converts a batch of sequences to a sequence of simd vectors.
Definition pairwise_alignment_algorithm.hpp:217
typename traits_type::alignment_result_type alignment_result_type
The configured alignment result type.
Definition pairwise_alignment_algorithm.hpp:51
constexpr auto slice
A view adaptor that returns a half-open interval on the underlying range.
Definition slice.hpp:137
A helper concept to check if a type is a sequence pair.
The internal SeqAn3 namespace.
Definition aligned_sequence_concept.hpp:26
constexpr auto const & get(configuration< configs_t... > const &config) noexcept
This is an overloaded member function, provided for convenience. It differs from the above function o...
Definition configuration.hpp:412
Provides seqan3::detail::pairwise_alignment_algorithm.
Provides seqan3::views::slice.
static constexpr bool is_banded
Flag indicating whether banded alignment mode is enabled.
Definition alignment/pairwise/detail/type_traits.hpp:120
static constexpr bool is_vectorised
Flag to indicate vectorised mode.
Definition alignment/pairwise/detail/type_traits.hpp:112
typename std::remove_reference_t< decltype(std::declval< configuration_t >().get_or(align_cfg::score_type< int32_t >{}))>::type original_score_type
The original score type selected by the user.
Definition alignment/pairwise/detail/type_traits.hpp:131
A strong type for designated initialisation of the column index of a matrix.
Definition matrix_coordinate.hpp:29
A strong type for designated initialisation of the row index of a matrix.
Definition matrix_coordinate.hpp:58