skbio.sequence.DNASequence.__ne__

DNASequence.__ne__(other)[source]

The inequality operator.

Biological sequences are not equal if their sequence is different or they are not the same type. Identifier, description, and quality scores are ignored.

Parameters:

other : BiologicalSequence

The sequence to test for inequality against.

Returns:

bool

Indicates whether self and other are not equal.

See also

__eq__, equals

Notes

See BiologicalSequence.equals for more fine-grained control of equality testing.

Examples

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