skbio.core.sequence.BiologicalSequence.__len__

BiologicalSequence.__len__()[source]

The len operator.

Returns:

int

The length of the BiologicalSequence.

Examples

>>> from skbio.core.sequence import BiologicalSequence
>>> s = BiologicalSequence('GGUC')
>>> len(s)
4