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

Only check_uppercase for string genes #301

Merged
merged 1 commit into from
Feb 7, 2025

Conversation

brenshanny
Copy link
Contributor

This fixes a bug where parse_genelists converts the gene list into a set of ints which then throws an exception when calling isupper() on an int

/usr/local/lib/python3.11/dist-packages/gseapy/__init__.py:554: in enrichr
    enr.run()
/usr/local/lib/python3.11/dist-packages/gseapy/enrichr.py:612: in run
    self._gene_isupper = self.check_uppercase(self._gls)
/usr/local/lib/python3.11/dist-packages/gseapy/enrichr.py:266: in check_uppercase
    is_upper = [s.isupper() for s in gene_list]
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

.0 = <set_iterator object at 0x7fe68eac7300>

>   is_upper = [s.isupper() for s in gene_list]
E   AttributeError: 'int' object has no attribute 'isupper'

@zqfang zqfang merged commit ae1bbc5 into zqfang:master Feb 7, 2025
4 checks passed
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

Successfully merging this pull request may close these issues.

2 participants