Protein.
index
(subsequence, start=None, end=None)[source]¶Find position where subsequence first occurs in the sequence.
State: Stable as of 0.4.0.
Parameters: |
|
---|---|
Returns: | Position where subsequence first occurs in this sequence. |
Return type: | int |
Raises: |
|
Examples
>>> from skbio import Sequence
>>> s = Sequence('ACACGACGTT-')
>>> s.index('ACG')
2