skbio.sequence.RNA.__bool__

RNA.__bool__()[source]

Returns truth value (truthiness) of sequence.

State: Stable as of 0.4.0.

Returns

True if length of sequence is greater than 0, else False.

Return type

bool

Examples

>>> from skbio import Sequence
>>> bool(Sequence(''))
False
>>> bool(Sequence('ACGT'))
True