Sequence

class pyrodigal.Sequence

A digitized input sequence.

gc

The GC content of the sequence, as a fraction.

Type

float

masks

A list of masked regions within the sequence.

Type

Masks

__len__()

Return len(self).

from_bytes(sequence)

Create a new Sequence object from an ASCII-encoded sequence.

Parameters
  • sequence (bytes) – The ASCII-encoded sequence to use. Any object implementing the buffer protocol is supported.

  • mask (bool) – Enable region-masking for spans of unknown characters, preventing genes from being built across them.

from_string(sequence)

Create a new Sequence object from a Unicode sequence.

Parameters
  • sequence (str) – The Unicode sequence to use.

  • mask (bool) – Enable region-masking for spans of unknown characters, preventing genes from being built across them.