Package obitools :: Class BioSequence
[hide private]
[frames] | no frames]

Class BioSequence

source code


BioSequence class is the base class for biological sequence representation. It provides storage of the sequence itself, of an identifier, a defintion an manage a set of complementary information on a key / value principle. BioSequence is an abstract class and must be instanciate from its subclasses

Instance Methods [hide private]
 
__init__(self, id, seq, definition=None, **info)
BioSequence constructor.
source code
 
__str__(self)
str(x)
source code
 
__getitem__(self, key) source code
 
__setitem__(self, key, value) source code
 
__iter__(self) source code
 
__len__(self) source code
 
isNucleotide(self) source code

Inherited from object: __delattr__, __getattribute__, __hash__, __new__, __reduce__, __reduce_ex__, __repr__, __setattr__

Properties [hide private]

Inherited from object: __class__

Method Details [hide private]

__init__(self, id, seq, definition=None, **info)
(Constructor)

source code 
BioSequence constructor.
Parameters:
  • id (str) - sequence identifier
  • seq (str) - the sequence
  • definition (str) - sequence defintion (optional)
  • info - extra named parametters can be add to associtiate complementary data to the sequence
Overrides: object.__init__

__str__(self)
(Informal representation operator)

source code 
str(x)
Overrides: object.__str__
(inherited documentation)