skbio.sequence.DNASequence.__len__

DNASequence.__len__()[source]

The len operator.

Returns:

int

The length of the BiologicalSequence.

Examples

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