View source: R/motif_enrichment_HOMER.R
homerToPFMatrixList | R Documentation |
Read motifs from a file in HOMER format and create a PFMatrixList from them.
homerToPFMatrixList(filename, n = 100L)
filename |
Name of the input file with HOMER-formatted motifs. |
n |
The number of observations (multiplied with base frequencies to create the number of observed bases at each position). |
A PFMatrixList
with motifs from the file.
dumpJaspar
for writing motifs from a Jaspar database
package into a file in HOMER format.
library(JASPAR2020)
optsL <- list(ID = c("MA0006.1"))
pfm1 <- TFBSTools::getMatrixSet(JASPAR2020, opts = optsL)
TFBSTools::Matrix(pfm1)
tmpfn <- tempfile()
dumpJaspar(filename = tmpfn, pkg = "JASPAR2020", opts = optsL)
pfm2 <- homerToPFMatrixList(tmpfn)
TFBSTools::Matrix(pfm2)
unlink(tmpfn)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.