skbio.sequence.RNA.__len__

RNA.__len__()[source]

Return the number of characters in this sequence.

State: Stable as of 0.4.0.

Returns

The length of this sequence.

Return type

int

Examples

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