You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Wondering if there is a way to plot >1 enrichment plot on the same graph? A use-case is when the same pathway is being compared under two different conditions. If the enrichment plots for the pathway significantly differs between the two conditions, it will be great to visualize it in the same plot. Just a thought. I know the DOSE package has some way of doing this, but it would be great if gggsea can do this also.
The text was updated successfully, but these errors were encountered:
Hi @sg3451 ,
thanks for reaching out. This is indeed possible with gggsea:
Use the gseaCurve function separately on each of your conditions.
Modify the outcome so that the condition name is part of the pathway name
Combine the data of both conditions and plot the result
# standard procedure, with your conditions being constructed separately
library(gggsea)
library(ggplot2)
setlist<-gggsea::mySetlistrl1<-gggsea::myRankedlist#use your condition 1df1<- gseaCurve(rl1, setlist)
rl2<-gggsea::myRankedlist#use your condition 2df2<- gseaCurve(rl2, setlist)
#-------------------------------------# modify the data, so that your condition appears in the pathway namedf1$set<- paste("condition1",df1$set)
df2$set<- paste("condition2",df2$set)
#------------------------------------# combine and plotdf<- rbind(df1,df2)
ggplot2::ggplot() +
geom_gsea(rbind(df))
Wondering if there is a way to plot >1 enrichment plot on the same graph? A use-case is when the same pathway is being compared under two different conditions. If the enrichment plots for the pathway significantly differs between the two conditions, it will be great to visualize it in the same plot. Just a thought. I know the DOSE package has some way of doing this, but it would be great if gggsea can do this also.
The text was updated successfully, but these errors were encountered: