Package Bio :: Package Motif :: Package Parsers :: Module MEME :: Class MEMEParser
[hide private]
[frames] | no frames]

Class MEMEParser

source code

ParserSupport.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

Instance Methods [hide private]
 
__init__(self)
__init__ (self)
source code
 
parse(self, handle)
parse (self, handle)
source code

Inherited from ParserSupport.AbstractParser: parse_file, parse_str

Method Details [hide private]

parse(self, handle)

source code 

parse (self, handle)

Overrides: ParserSupport.AbstractParser.parse