skbio.sequence.Protein.__len__#

Protein.__len__()[source]#

Return the number of characters in this sequence.

Returns:
int

The length of this sequence.

Examples

>>> from skbio import Sequence
>>> s = Sequence('GGUC')
>>> len(s)
4