i'm using glam2 to automate motif finding over sets of sequences (so it's running thousands of times). for each run, glam2 outputs a pretty html file and a .meme file. the html file lists a regular expression for each motif while the .meme file only lists the PWM. i want to grab is all regular expressions for each run. are there any tools to parse glam2 output? or some other tool in the meme tool suite to just get the regexp?
otherwise, it seems the simplest solution is to reconstruct the regexp from the PWM.