| gseq.read_meme | R Documentation |
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)
file |
character(1) path to a MEME format 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()
## Not run:
motifs <- gseq.read_meme("JASPAR2024_CORE_vertebrates.meme")
names(motifs)
m <- motifs[[1]]
head(m)
attr(m, "name")
attr(m, "nsites")
## End(Not run)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.