sugar._io.meme module¶
Read support for file formats associated with the MEME Suite
- sugar._io.meme._read_motifs_meme_txt(f)[source]¶
Parse MEME txt file and return dictionary of motifs
- sugar._io.meme._read_motifs_meme_txt_regex(f)[source]¶
Parse MEME txt file with regex and return dictionary of motifs
- sugar._io.meme.read_fts_meme_txt(f, *, ftype=None, engine='regex')[source]¶
MEME txt reader
- Parameters:
Returns a flat
FeatureListof all motif hits. To get a dictionary of motifs callFeatureList.groupby('motif')orFeatureList.groupby('motif_id')on the returned object. Alternatively, use the_read_motifs_meme_txt_regexfunction directly.Warning
This function should NOT be called directly, it registers via
read_fts(), call this instead.