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

Class Record

source code

object --+    
         |    
      list --+
             |
            Record

A class for holding the results of a MEME run.

A meme.Record is an object that holds the results from running MEME. It implements no methods of its own.

The meme.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:

>>> from Bio import motifs
>>> with open("meme.output.txt") as f:
...     record = motifs.parse(f, 'MEME')
>>> motif = record[0]
>>> print(motif.name)
Motif 1
>>> motif = record['Motif 1']
>>> print(motif.name)
Motif 1
Instance Methods [hide private]
new empty list
__init__(self)
__init__ (self)
source code
 
__getitem__(self, key)
x[y]
source code

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

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

Class Variables [hide private]

Inherited from list: __hash__

Properties [hide private]

Inherited from object: __class__

Method Details [hide private]

__init__(self)
(Constructor)

source code 
__init__ (self)
Returns: new empty list
Overrides: object.__init__

__getitem__(self, key)
(Indexing operator)

source code 
x[y]
Overrides: list.__getitem__
(inherited documentation)