| gseq.read_homer | R Documentation |
Parses a HOMER .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_homer(file)
file |
character(1) path to a HOMER motif file ( |
A named list of numeric matrices. Each matrix has columns
A, C, G, T and one row per motif position. List names are
derived from the consensus sequence. Each matrix carries the following
attributes:
Motif name / description from the header
Consensus sequence from the header
Detection threshold (numeric)
Log p-value (numeric)
Motif width (integer)
"homer"
Other motif functions:
gseq.read_jaspar(),
gseq.read_meme()
## Not run:
motifs <- gseq.read_homer("known_motifs.motif")
names(motifs)
m <- motifs[[1]]
head(m)
attr(m, "consensus")
## End(Not run)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.