Module for the support of MEME minimal motif format.
Parse the text output of the MEME program into a meme.Record object.
>>> from Bio.motifs import minimal >>> with open("motifs/meme.out") as f: ... record = minimal.read(f) ... >>> for motif in record: ... print(motif.name, motif.evalue) ... 1 1.1e-22
You can access individual motifs in the record by their index or find a motif by its name:
>>> from Bio import motifs >>> with open("motifs/minimal_test.meme") as f: ... record = motifs.parse(f, 'minimal') ... >>> motif = record >>> print(motif.name) KRP >>> motif = record['IFXA'] >>> print(motif.name) IFXA
This function wont retrieve instances, as there are none in minimal meme format.