skbio.core.sequence.ProteinSequence.__ne__

ProteinSequence.__ne__(other)[source]

The inequality operator.

Parameters:

other : BiologicalSequence

The sequence to test for inequality against.

Returns:

bool

Indicates whether self and other are not equal.

Notes

BiologicalSequences are not equal if their sequence is different or they are not the same type.

Examples

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