I'm using GSEApy to do my enrichment analysis. I sorted my pre_res
based on nes
. I was trying to get GSEA plot for the first term, which is the most enriched. The most enriched was 'Mitotic G2/M Transition Checkpoint (GO:0044818)'
. Here is the code I attempted to generate the plot
gseaplot(pre_res.ranking,
term='Mitotic G2/M Transition Checkpoint (GO:0044818)',
**pre_res.results['Mitotic G2/M Transition Checkpoint (GO:0044818)'])
It gave me an error message saying this:
TypeError Traceback (most recent call last)
Cell In[53], line 2
1 # GSEA Plot
----> 2 gseaplot(pre_res.ranking,
3 term='Mitotic G2/M Transition Checkpoint (GO:0044818)',
4 **pre_res.results['Mitotic G2/M Transition Checkpoint (GO:0044818)'])
TypeError: gseaplot() got multiple values for argument 'term'
I even looked at the documentation but I'm not sure why it is giving me TypeError. Do I need to add something in the term=
?
Any help is much appreciated. Thank you.