Question about identifying differentially accessible peaks and overrepresented motifs #1533
-
Hi, We are currently utilizing Signac to identify overrepresented motifs by comparing different sample conditions in our study, specifically CNV, ASD, and CON. Our initial step involved using the FindMarkers function to identify differentially accessible peaks between 1) CNV and CON, and 2) ASD and CON. Subsequently, we searched for DNA motifs that are notably prevalent in these differentially accessible peaks. Our analysis revealed a different number of differentially accessible peaks in different comparisons: 3,140 peaks when comparing CNV and CON, and 5,312 peaks for ASD and CON, with an overlap of 1,465 peaks between them. However, our attempt to identify overrepresented motifs in these peaks led to an unexpected result. We found 746 motifs, which correspond to the total number of motifs in the CORE collection, for both CNV vs. CON and ASD vs. CON comparisons. This also meant an overlap of 746 motifs. We even tried expanding our search beyond the CORE collection and different p value threshold for identifying peaks, but the outcome remained unchanged. I am attaching my code for your review and would greatly appreciate any suggestion you can provide in resolving this issue. Thank you very much for your help! Best regards, Get a list of motif position frequency matrices from the JASPAR databasepfm <- getMatrixSet( add motif informationmultiomes.integrated <- AddMotifs( Switch the identifiers to groupIdents(multiomes.integrated) <- multiomes.integrated$group Finding differentially accessible peaks when comparing ASD vs CONda_peaks_ASDvsCON <- FindMarkers( Finding differentially accessible peaks when comparing CNV vs CONda_peaks_CNVvsCON <- FindMarkers( get top differentially accessible peaks: ASDvsCON and CNVvsCONtop.da.peak_ASDvsCON <- rownames(da_peaks_ASDvsCON[da_peaks_ASDvsCON$p_val_adj<0.01, ]) Identify enriched motifs: ASD vs CON; CNV vs CONDefaultAssay(multiomes.integrated) <- "peaks" |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 2 replies
-
|
Beta Was this translation helpful? Give feedback.
FindMotifs
will report the fold enrichment and p-value for each motif in the dataset, you need to look at those values to determine which motifs are differentially enriched between your peak sets. It's expected that the output will be the same dimension.