find_symbol#

biotite.sequence.find_symbol(sequence: Sequence[S], symbol: S) → ndarray[tuple[K], dtype[integer]][source]#

Find a symbol in a sequence.

Parameters:
sequenceSequence

The sequence to find the symbol in.

symbolobject

The symbol to be found in sequence.

Returns:
match_indicesndarray

The indices in sequence, where symbol has been found.