skbio.sequence.Sequence.__len__#

Sequence.__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