Entering edit mode
3.6 years ago
rykerklie7
▴
30
I am using the gseaplot2 function from enrichplot to mimic the GSEA figure that comes from the software. I would like to add the NES value to the plot, and tried editing the function but results in a error.
The function used is
gseaplot2(GSEAobject, geneSetID = 1, title = GSEAobject$Description[1],pvalue_table = TRUE)
I tried editing the gseaplot2 function to include the NES value in the pvalue_table part of the function but the error I get is
Error in x$children[[i]] : no such index at level 1
Source of the function at gseaplot2
For those who want to apply this change permanently (i.e will apply when knitting the document), I made a fork with the code change.
Thanks @lianchee11 for the code.
* The pathway description in green font will be omitted from the plot.