SeqAn3 3.4.0-rc.1
The Modern C++ library for sequence analysis.
|
Implements the alignment result builder. More...
#include <seqan3/alignment/pairwise/detail/policy_alignment_result_builder.hpp>
Protected Types | |
using | result_type = typename traits_type::alignment_result_type |
The alignment result type. | |
using | traits_type = alignment_configuration_traits< alignment_configuration_t > |
The configuration traits type. | |
Protected Member Functions | |
template<typename sequence_pair_t , typename index_t , typename score_t , typename matrix_coordinate_t , typename alignment_matrix_t , typename callback_t > requires std::invocable<callback_t, result_type> | |
void | make_result_and_invoke (sequence_pair_t &&sequence_pair, index_t &&id, score_t score, matrix_coordinate_t end_positions, 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. | |
Constructors, destructor and assignment | |
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. | |
Implements the alignment result builder.
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.
|
inlineprotected |
Construction and initialisation using the alignment configuration.
[in] | config | The alignment configuration [not used in this context]. |
|
inlineprotected |
Builds the seqan3::alignment_result based on the given alignment result type and then invokes the given callable with the result.
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. |
[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.