Could I get the enriched motif of peaks to a specific gene (The results of 'p2g') #707
-
Dear ArchR developers, I am wondering could I use 'peakAnnoEnrichment' function (which needs a SummarizedExperiment object returned by markerFeatures() ) to get the enriched motifs of the peaks that link to a specific gene. Thanks very much for your help and sorry for any troubles to you. Best regards, |
Beta Was this translation helpful? Give feedback.
Replies: 2 comments 6 replies
-
This might be possible but I'm not sure how the statistics would work. Wouldnt this only be for a handful of peaks? Seems difficult to identify enrichment from such a small number of observations? |
Beta Was this translation helpful? Give feedback.
-
Hi. I am also interested on looking at special gene peaks and see with motif is enrich in this gene. For this I did a subset of markersPeaks but when I did peakAnnoEnrichment I get the error that Peaks from seMarker do not match peakSet in ArchRProj! I tested also just removing one line of the markersPeaks and give the same error. Could it be possible to authorize the seMArker to be different from the peakSet? Or do you suggest to do it differently. This is what I did: table(MM_OnlyPre_peak$Translocation) markersPeaks <- getMarkerFeatures( markersPeaks df=rowData(markersPeaks) markersPeaks2=markersPeaks[row.names(df[which(df$seqnames=="chr18" & df$start %in% peakset[which(peakset$nearestGene=="BCL2"), "start"]),]),] MM_OnlyPre_peak <- addMotifAnnotations(ArchRProj = MM_OnlyPre_peak, motifSet = "cisbp", name = "Motif", force=TRUE) enrichMotifs <- peakAnnoEnrichment( Thanks for your help |
Beta Was this translation helpful? Give feedback.
Hi. I am also interested on looking at special gene peaks and see with motif is enrich in this gene. For this I did a subset of markersPeaks but when I did peakAnnoEnrichment I get the error that Peaks from seMarker do not match peakSet in ArchRProj! I tested also just removing one line of the markersPeaks and give the same error. Could it be possible to authorize the seMArker to be different from the peakSet? Or do you suggest to do it differently.
This is what I did:
MM_OnlyPre_peak <- loadArchRProject(path = "Save-MM_OnlyPre_peak")
table(MM_OnlyPre_peak$Translocation)
markersPeaks <- getMarkerFeatures(
ArchRProj = MM_OnlyPre_peak,
useMatrix = "PeakMatrix",
groupBy = "Translocation",
bi…