skbio.core.sequence.NucleotideSequence.__eq__

NucleotideSequence.__eq__(other)[source]

The equality operator.

Parameters:

other : BiologicalSequence

The sequence to test for equality against.

Returns:

bool

Indicates whether self and other are equal.

Notes

BiologicalSequences are equal if their sequence is the same and they are the same type.

Examples

>>> from skbio.core.sequence import BiologicalSequence
>>> s = BiologicalSequence('GGUCGUGAAGGA')
>>> t = BiologicalSequence('GGUCGUGAAGGA')
>>> s == t
True
>>> u = BiologicalSequence('GGUCGUGACCGA')
>>> u == t
False