Sequence (pyncbitk.objects.seq)#

Biological sequences.

The NCBI C++ Toolkit defines a data model which allows to define biological sequences as a combination of identifiers that apply to an instance. Identifiers are used to identify each sequence uniquely, while the sequence instance describes the knowledge about that sequence: its molecule type, length, or actual contents.

See also

The Biological Sequences section of the NCBI C++ Toolkit documentation.

class pyncbitk.objects.seq.BioSeq(Serial)#

A biological sequence.

In the NCBI C++ Toolkit, a Bioseq binds a sequence instance to one or more sequence identifiers. The instance stores the sequence data or a reference to the sequence location.

classmethod __new__(*args, **kwargs)#
__init__(instance, id, *ids, descriptions=())#

Create a new sequence with the given instance and identifiers.

__reduce__()#

Helper for pickle.

__repr__()#

Return repr(self).

descriptions#

The sequence descriptions.

Type:

SeqDescSet

id#

The first sequence identifier.

Type:

SeqId

ids#

The sequence identifiers.

Type:

list of SeqId

instance#

The sequence instance.

Type:

SeqInst