Package Bio :: Package motifs :: Module mast :: Class Record
[hide private]
[frames] | no frames]

Class Record

source code

object --+    
         |    
      list --+
             |
            Record

The class for holding the results from a MAST run.

A mast.Record holds data about matches between motifs and sequences.
The motifs held by the Record are objects of the class meme.Motif.

The mast.Record class inherits from list, so you can access individual
motifs in the record by their index. Alternatively, you can find a motif
by its name:

>>> f = open("mast.output.txt")
>>> from Bio import motifs
>>> record = motifs.parse(f, 'MAST')
>>> motif = record[0]
>>> print motif.name
1
>>> motif = record['1']
>>> print motif.name
1

Instance Methods [hide private]
new list

__init__(self)
x.__init__(...) initializes x; see x.__class__.__doc__ for signature
source code
 
__getitem__(self, key)
x[y]
source code

Inherited from list: __add__, __contains__, __delitem__, __delslice__, __eq__, __ge__, __getattribute__, __getslice__, __gt__, __hash__, __iadd__, __imul__, __iter__, __le__, __len__, __lt__, __mul__, __ne__, __new__, __repr__, __reversed__, __rmul__, __setitem__, __setslice__, append, count, extend, index, insert, pop, remove, reverse, sort

Inherited from object: __delattr__, __reduce__, __reduce_ex__, __setattr__, __str__

Properties [hide private]

Inherited from object: __class__

Method Details [hide private]

__init__(self)
(Constructor)

source code 
x.__init__(...) initializes x; see x.__class__.__doc__ for signature

Returns:
new list

Overrides: object.__init__
(inherited documentation)

__getitem__(self, key)
(Indexing operator)

source code 
x[y]

Overrides: list.__getitem__
(inherited documentation)