Motif enrichment in a set of peaks #1331
-
Hi @rcorces, I know we can do motif enrichment in markerPeaks object obtained from ArchR which is a SummarizedExperiment object. If we have done a differential analysis of marker peaks elsewhere - we usually get a data.frame with a set of peaks and foldchange and FDR values. How do I convert this into a format similar to the SummarizedExperiment object accepted by peakAnnoEnrichment() for performing motif enrichment? Please see that the peaks were called with ArchR so are present in the peak matrix. Thanks |
Beta Was this translation helpful? Give feedback.
Replies: 2 comments 2 replies
-
ArchR doesnt have a function to do this (maybe it should). But this can be accomplished with other packages like motifmatchR |
Beta Was this translation helpful? Give feedback.
-
I happen to be doing something similar, and I construct my own sce from the peaks I have and use this in mySe <- SummarizedExperiment(
assays = list(z = de_res$z, FDR = de_res$FDR, logFC = de_res$logFC),
rowData = as.data.frame(peakSet),
metadata = list(Params = list(useMatrix = "PeakMatrix"))
)
enrichMotifs <- peakAnnoEnrichment(
seMarker = mySe,
ArchRProj = projPBMC,
peakAnnotation = "CisBP2021",
cutOff = "FDR < 0.1"
) |
Beta Was this translation helpful? Give feedback.
I happen to be doing something similar, and I construct my own sce from the peaks I have and use this in
peakAnnoEnrichment
, I think this should work: