Package Bio :: Package MEME :: Module Parser :: Class MEMEParser
[show private | hide private]
[frames | no frames]

Class MEMEParser

AbstractParser --+
                 |
                MEMEParser


A parser for the text output of the MEME program.
Parses the output into an object of the MEMERecord class.

Methods:
parse (handle): parses the contents of the file handle passed to it.

Example:

f = open("meme.output.txt")
parser = MEMEParser()
meme_record = parser.parse(f)
for motif in meme_record.motifs:
    for instance in motif.instances:
        print instance.motif_name, instance.sequence_name, instance.strand, instance.pvalue

Method Summary
  __init__(self)
__init__ (self)
  parse(self, handle)
parse (self, handle)
    Inherited from AbstractParser
  parse_file(self, filename)
  parse_str(self, string)

Method Details

__init__(self)
(Constructor)

__init__ (self)

parse(self, handle)

parse (self, handle)
Overrides:
Bio.ParserSupport.AbstractParser.parse

Generated by Epydoc 2.1 on Thu Aug 10 20:01:06 2006 http://epydoc.sf.net