skbio.core.sequence.ProteinSequence.__getitem__

ProteinSequence.__getitem__(i)[source]

The indexing operator.

Parameters:

i : int

The position to return from the BiologicalSequence.

Returns:

str

The character at position i in the BiologicalSequence.

Examples

>>> from skbio.core.sequence import BiologicalSequence
>>> s = BiologicalSequence('GGUCGUGAAGGA')
>>> s[1]
<BiologicalSequence: G (length: 1)>