skbio.sequence.DNA.__len__

DNA.__len__()[source]

Return the number of characters in this sequence.

State: Stable as of 0.4.0.

Returns:

int

The length of this sequence.

Examples

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