| gseq.read_jaspar | R Documentation |
Parses a JASPAR Position Frequency Matrix (PFM) file and returns a named
list of position probability matrices (PPM). Supports both the standard
JASPAR header format (>ID NAME followed by labeled rows) and the
simple 4-row PFM format. Counts are converted to probabilities by dividing
each column by its column sum.
gseq.read_jaspar(file)
file |
character(1) path to a JASPAR 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 from the header line
Motif width (integer)
Total counts per position (numeric; NA for simple-format files)
Sub-format detected: "jaspar" or "simple"
Other motif functions:
gseq.read_homer(),
gseq.read_meme()
## Not run:
motifs <- gseq.read_jaspar("JASPAR2024_CORE.jaspar")
names(motifs)
m <- motifs[[1]]
head(m)
## End(Not run)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.