Open
Description
Describe the bug
Calling uniprot_data
with argument organism="*"
results to error because UniProt no longer supports this, as documented here. When the argument is None
, the organism
parameter should be removed.
To Reproduce
Steps to reproduce the behavior:
uniprot.uniprot_data("organism_id", organism="*", reviewed=self.rev)
Expected behavior
No error
Traceback
File "C:\Users\Paul\Documents\GitHub\CROssBARv2\bccb\uniprot_adapter.py", line 331, in _download_uniprot_data
self.data[query_key] = uniprot.uniprot_data(
File "c:\Users\Paul\AppData\Local\pypoetry\Cache\virtualenvs\bccb-W1ur4Y1J-py3.10\lib\site-packages\pypath\inputs\uniprot.py", line 834, in uniprot_data
return uniprot_query(*query, fields = fields, **kwargs)
File "c:\Users\Paul\AppData\Local\pypoetry\Cache\virtualenvs\bccb-W1ur4Y1J-py3.10\lib\site-packages\pypath\inputs\uniprot.py", line 899, in uniprot_query
return UniprotQuery(*query, fields = fields, **kwargs).perform()
File "c:\Users\Paul\AppData\Local\pypoetry\Cache\virtualenvs\bccb-W1ur4Y1J-py3.10\lib\site-packages\pypath\inputs\uniprot.py", line 681, in perform
_id, *variables = zip(*self)
ValueError: not enough values to unpack (expected at least 1, got 0)
Desktop (please complete the following information):
- OS: Windows 11
- Python version: 3.10.11
- Version or commit hash
[[package]]
name = "pypath-omnipath"
version = "0.16.17"
description = "Molecular signaling prior knowledge processing"
optional = false
python-versions = "<4.0,>=3.9"
files = [
{file = "pypath_omnipath-0.16.17-py3-none-any.whl", hash = "sha256:b4eb2cd958bcc4c9d71845d14b4cc0733fb08dd827fd94565ab1f0a1861af91e"},
{file = "pypath_omnipath-0.16.17.tar.gz", hash = "sha256:dace4286eb3335300392470784a3afcf694331e6639d047698c8cecd92a55249"},
]