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

Class SubSequence

source code


Instance Methods [hide private]
 
__init__(self, reference, location=None, start=None, stop=None, id=None, definition=None, **info)
BioSequence constructor.
source code
 
__len__(self) source code
str
getStr(self)
Return the sequence as a string
source code
 
__iter__(self)
Iterate through the sequence symbols
source code
 
_posInWrapped(self, position) source code
 
complement(self) source code

Inherited from WrappedBioSequence: __getitem__, getDefinition, getId, getRoot, getSymbolAt, getWrapped, isNucleotide, iteritems, iterkeys, posInWrapped

Inherited from BioSequence: __contains__, __delitem__, __setitem__, __str__, extractTaxon, getSubSeq, getTags, getWrappers, items, keys, register, setDefinition, setId

Inherited from BioSequence (private): _unregister

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

Static Methods [hide private]
 
_sign(x) source code
Properties [hide private]

Inherited from WrappedBioSequence: definition, id, wrapped

Inherited from BioSequence: wrappers

Inherited from object: __class__

Method Details [hide private]

__init__(self, reference, location=None, start=None, stop=None, id=None, definition=None, **info)
(Constructor)

source code 

BioSequence constructor.

Parameters:
  • id - sequence identifier
  • seq - the sequence
  • definition - sequence definition (optional)
  • info - extra named parameters can be add to associate complementary data to the sequence
Overrides: object.__init__
(inherited documentation)

__len__(self)
(Length operator)

source code 
Overrides: BioSequence.__len__

getStr(self)

source code 

Return the sequence as a string

Returns: str
the string representation of the sequence
Overrides: BioSequence.getStr
(inherited documentation)

__iter__(self)

source code 

Iterate through the sequence symbols

Overrides: BioSequence.__iter__
(inherited documentation)

_posInWrapped(self, position)

source code 
Overrides: WrappedBioSequence._posInWrapped