stripe#

lightmotif.stripe(sequence, *, protein=False)#

Encode and stripe a text sequence.

Parameters:
  • sequence (str) – The sequence to encode and stripe.

  • protein (bool) – Pass True to treat the sequence as a protein sequence.

Returns:

StripedSequence – A striped sequence containing the sequence data.

Raises:

ValueError – When the sequences contains an invalid character.