skbio.alignment.AlignPath.stops#

AlignPath.stops()[source]#

Calculate the stop positions of sequences in the alignment.

Returns:
ndarray of int of shape (n_sequences,)

Stop position (0-based) of each sequence in the alignment.

Notes

The stop position of a sequence is the position immediately after the aligned region. Therefore, for any sequence, the aligned region can be extracted with: seq[start:stop].

Unlike starts, which are stored in the alignment path, stops are calculated from the path when this method is called.