align_ungapped
#
- biotite.sequence.align.align_ungapped(seq1, seq2, matrix, score_only=False)[source]#
Align two sequences without insertion of gaps.
Both sequences need to have the same length.
- Parameters:
- seq1, seq2Sequence
The sequences, whose similarity should be scored.
- matrixSubstitutionMatrix
The substitution matrix used for scoring.
- score_onlybool, optional
If true return only the score instead of an alignment.
- Returns:
- scoreAlignment or int
The resulting trivial alignment. If score_only is set to true, only the score is returned.