Fork me on GitHub"

# skbio.sequence.GrammaredSequence.__bool__

`GrammaredSequence.``__bool__`()

  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