skbio.sequence.RNA.__bool__#

RNA.__bool__()[source]#

Return truth value (truthiness) of sequence.

Returns:
bool

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

Examples

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