Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Dotplot ignoring arguments #195

Closed
NicolasSompairac opened this issue Mar 24, 2023 · 4 comments
Closed

Dotplot ignoring arguments #195

NicolasSompairac opened this issue Mar 24, 2023 · 4 comments

Comments

@NicolasSompairac
Copy link

Hello there,

Using the latest version of gseapy (1.0.4), after trying to generate a figure with dotplot, I do not manage to make it show the top n terms from the different gene sets. The dataframe from the enrichment does contain several gene sets and the adjusted p-values are significant enough to pass the cutoff.
But even by specifying the "x" argument as "Gene_set", it seems that it is totally ignored and the plot shows only the "Combined Score".

@NicolasSompairac
Copy link
Author

By the way, same thing happens with the "y" argument as well for some reason. Setting it to "Overlap" for example still generates the default "Term" values.

@NicolasSompairac
Copy link
Author

After much struggle, I decided to remove and reinstall the GSEApy package with pip.
And after doing so, now the dotplot function works correctly...

I don't know if we can really close this issue but I can confirm that before reinstalling the package, I had the latest package (1.0.4) and it was correctly installed.
I am however not sure how the package was installed in the first place. There is a chance that it was installed as a depency of the "scanpy" package, so that could be the culprit?

@zqfang
Copy link
Owner

zqfang commented Mar 29, 2023

Sorry for the bad experience that you've had with gseapy. It is possible that the pandas version changed ? It's the same code either install use pip or bioconda for v1.0.4.

I'll go through the code when I have time

@NicolasSompairac
Copy link
Author

Hi @zqfang , thanks for taking notice of the issue :)
Honestly, you don't have to be sorry, especially since I managed to make it work in the end.

I am however confused about the reason of the issue since the plot itself was generated, there were no argument issues so they did exist in the dotplot function but the reason of why it constantly reverted to default arguments is just unclear.
Regarding your comment, I did not change the pandas version afaik and a simple pip uninstall gseapy followed by an install did the trick.
I unfortunately did not save the logs of the pip install gseapy result but I clearly remember that it didn't update or reinstall some dependencies and stated that they were already present.

@zqfang zqfang closed this as completed Jun 15, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants