pub fn stripe(
sequence: Bound<'_, PyString>,
protein: bool,
) -> PyResult<StripedSequence>
Expand description
Encode and stripe a text sequence.
Arguments:
sequence (str
): The sequence to encode and stripe.
protein (bool
): Pass True
to treat the sequence as a protein
sequence.
Returns:
~lightmotif.StripedSequence
: A striped sequence containing the
sequence data.
Raises:
ValueError
: When the sequences contains an invalid character.