Parses a MEME minimal motif format file and returns a named list of
position probability matrices (PPM). Each matrix has rows corresponding
to motif positions and columns A, C, G, T.
The returned matrices are directly usable with gseq.pwm.
gseq.read_meme(file)A named list of numeric matrices. Each matrix has columns
A, C, G, T and one row per motif position. List names are motif
identifiers. Each matrix carries the following attributes:
Motif name / alternate ID (second token on the MOTIF line)
Alphabet length (integer, typically 4)
Motif width (integer, number of positions)
Number of sites used to build the matrix (numeric; NA if absent)
E-value (numeric; NA if absent)
URL string if present, otherwise NA
Strand specification from the file header (e.g. "+ -")
Named numeric vector of background frequencies (c(A=..., C=..., G=..., T=...)), or NULL if absent
Other motif functions:
gseq.read_homer(),
gseq.read_jaspar()