EncodedSequence#

class lightmotif.EncodedSequence(sequence, protein=False)#

A biological sequence encoded as digits.

copy()#

Create a copy of this sequence.

stripe()#

Convert this sequence into a striped matrix.

Returns:

StripedSequence – The input sequence, stored in a column-major matrix.

protein#

True if the encoded sequence is a protein sequence.

Type:

bool