skbio.core.sequence.DNASequence.__contains__

DNASequence.__contains__(other)[source]

The in operator.

Parameters:

other : str

The putative subsequence.

Returns:

bool

Indicates whether other is contained in self.

Examples

>>> from skbio.core.sequence import BiologicalSequence
>>> s = BiologicalSequence('GGUCGUGAAGGA')
>>> 'GGU' in s
True
>>> 'CCC' in s
False