That is much more clear, thank you.
And you're right, apparently there isn't a great approach to getting the genes in each enriched pathway. The only way that I can see to do it is by looking at each pathway you're interested in individually. A bit of a hassle, but you could write a function to do it for each pathway of interest easily enough. Something like this:
res = plotRegionGeneAssociationGraphs(job, ontology = "GO Molecular Function",
termID = "GO:0004984")
res[1:2, ]
Yields:
## GRanges object with 2 ranges and 2 metadata columns:
## seqnames ranges strand | gene distTSS
## <Rle> <IRanges> <Rle> | <character> <numeric>
## [1] chr1 247871555-248931674 * | OR2M4 -616
## [2] chr3 96368632-99050767 * | OR5AC2 -96317
## -------
## seqinfo: 7 sequences from an unspecified genome; no seqlengths
What have you tried? What final output do you want? We need hard examples of what you have, what you've tried, and what you expect to get out at the end. We can't help you much otherwise.
Hi @jared.andrews07
I have a list of annotated chip-seq peaks and their corresponding genes. In order to check if there is any enrichment for the genes that are from any specific oncogenic or any immunological pathway, I have used rGREAT. rGREAT with its getEnrichmentTables() provided me a file with list of enriched pathways and their significance level. But it doesn't tell which genes were used and overlapped with a pathway of my interest.
Can you suggest any smart approach to do the same?
I hope it is clear and make sense now.