Sequence#

class pyfamsa.Sequence#

A digitized sequence.

__init__(id, sequence)#

Create a new sequence.

Parameters:
  • id (bytes) – The sequence identifier.

  • sequence (bytes) – The sequence contents.

Raises:

ValueError – when initializing an empty sequence.

copy()#

Copy the sequence data, and return the copy.

id#

The identifier of the sequence.

Type:

bytes

sequence#

The symbols of the sequence as an ASCII string.

Type:

bytes

size#

The number of symbols in the sequence.

Type:

int