function [align_length, n_errors, error_positions] = align_with_constraints_fixed_right(seq1, seq2, maximum_errors, error_cost)
%#codegen

[align_length, n_errors, rev_error_positions] = align_with_constraints_fixed_left( fliplr(seq1), fliplr(seq2), maximum_errors, error_cost);
error_positions = length(seq1) - rev_error_positions + 1;

end