Package BioSQL :: Module BioSeq :: Class DBSeq
[hide private]
[frames] | no frames]

Class DBSeq

source code

 object --+    
          |    
Bio.Seq.Seq --+
              |
             DBSeq

Instance Methods [hide private]
 
__init__(self, primary_id, adaptor, alphabet, start, length)
Create a new DBSeq object referring to a BioSQL entry.
source code
 
__len__(self) source code
 
__getitem__(self, index) source code
 
tostring(self)
Returns the full sequence as a python string.
source code
 
__str__(self)
Returns the full sequence as a python string.
source code
 
toseq(self)
Returns the full sequence as a Seq object.
source code
 
__add__(self, other)
Add another sequence or string to this sequence.
source code
 
__radd__(self, other) source code

Inherited from Bio.Seq.Seq: __repr__, back_transcribe, complement, count, find, lstrip, reverse_complement, rfind, rsplit, rstrip, split, strip, tomutable, transcribe, translate

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

Properties [hide private]
  data
Sequence as string (DEPRECATED)

Inherited from object: __class__

Method Details [hide private]

__init__(self, primary_id, adaptor, alphabet, start, length)
(Constructor)

source code 

Create a new DBSeq object referring to a BioSQL entry.

You wouldn't normally create a DBSeq object yourself, this is done for you when retreiving a DBSeqRecord object from the database.

Overrides: object.__init__

__len__(self)
(Length operator)

source code 
Overrides: Bio.Seq.Seq.__len__

__getitem__(self, index)
(Indexing operator)

source code 
Overrides: Bio.Seq.Seq.__getitem__

tostring(self)

source code 

Returns the full sequence as a python string.

Although not formally deprecated, you are now encouraged to use str(my_seq) instead of my_seq.tostring().

Overrides: Bio.Seq.Seq.tostring

__str__(self)
(Informal representation operator)

source code 

Returns the full sequence as a python string.

Overrides: object.__str__

__add__(self, other)
(Addition operator)

source code 

Add another sequence or string to this sequence.

Overrides: Bio.Seq.Seq.__add__
(inherited documentation)

__radd__(self, other)
(Right-side addition operator)

source code 
Overrides: Bio.Seq.Seq.__radd__

Property Details [hide private]

data

Sequence as string (DEPRECATED)

Get Method:
tostring(self) - Returns the full sequence as a python string.