|
template<typename sequence_pair_t , typename index_t , typename score_t , typename matrix_coordinate_t , typename alignment_matrix_t , typename callback_t > |
void | make_result_and_invoke ([[maybe_unused]] sequence_pair_t &&sequence_pair, [[maybe_unused]] index_t &&id, [[maybe_unused]] score_t score, [[maybe_unused]] matrix_coordinate_t end_positions, [[maybe_unused]] alignment_matrix_t const &alignment_matrix, callback_t &&callback) |
| Builds the seqan3::alignment_result based on the given alignment result type and then invokes the given callable with the result. More...
|
|
|
| policy_alignment_result_builder ()=default |
| Defaulted.
|
|
| policy_alignment_result_builder (policy_alignment_result_builder const &)=default |
| Defaulted.
|
|
| policy_alignment_result_builder (policy_alignment_result_builder &&)=default |
| Defaulted.
|
|
policy_alignment_result_builder & | operator= (policy_alignment_result_builder const &)=default |
| Defaulted.
|
|
policy_alignment_result_builder & | operator= (policy_alignment_result_builder &&)=default |
| Defaulted.
|
|
| ~policy_alignment_result_builder ()=default |
| Defaulted.
|
|
| policy_alignment_result_builder (alignment_configuration_t const &config) |
| Construction and initialisation using the alignment configuration. More...
|
|
template<typename alignment_configuration_t>
class seqan3::detail::policy_alignment_result_builder< alignment_configuration_t >
Implements the alignment result builder.
- Template Parameters
-
alignment_configuration_t | The type of the alignment configuration; must be a type specialisation of seqan3::configuration. |
Implements the interfaces to build the alignment result based on the previously selected output configurations.
template<typename alignment_configuration_t >
template<typename sequence_pair_t , typename index_t , typename score_t , typename matrix_coordinate_t , typename alignment_matrix_t , typename callback_t >
void seqan3::detail::policy_alignment_result_builder< alignment_configuration_t >::make_result_and_invoke |
( |
[[maybe_unused] ] sequence_pair_t && |
sequence_pair, |
|
|
[[maybe_unused] ] index_t && |
id, |
|
|
[[maybe_unused] ] score_t |
score, |
|
|
[[maybe_unused] ] matrix_coordinate_t |
end_positions, |
|
|
[[maybe_unused] ] alignment_matrix_t const & |
alignment_matrix, |
|
|
callback_t && |
callback |
|
) |
| |
|
inlineprotected |
Builds the seqan3::alignment_result based on the given alignment result type and then invokes the given callable with the result.
- Template Parameters
-
sequence_pair_t | The type of the sequence pair. |
id_t | The type of the id. |
score_t | The type of the score. |
matrix_coordinate_t | The type of the matrix coordinate. |
alignment_matrix_t | The type of the alignment matrix. |
callback_t | The type of the callback to invoke. |
- Parameters
-
[in] | sequence_pair | The indexed sequence pair. |
[in] | id | The associated id. |
[in] | score | The best alignment score. |
[in] | end_positions | The matrix coordinate of the best alignment score. |
[in] | alignment_matrix | The alignment matrix to obtain the trace back from. |
[in] | callback | The callback to invoke with the generated result. |
Generates a seqan3::alignment_result object with the results computed during the alignment. Depending on the seqan3::align_cfg::output_* configuration only the requested values are stored. In some cases some additional work is done to generate the requested result. For example computing the associated alignment from the traceback matrix.