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

ResourceError when running evcouplings_dbupdate #304

Open
MarioAsti8 opened this issue Dec 20, 2023 · 2 comments
Open

ResourceError when running evcouplings_dbupdate #304

MarioAsti8 opened this issue Dec 20, 2023 · 2 comments

Comments

@MarioAsti8
Copy link

Hi. I am getting a ResourceError with uniprot when trying to run evcouplings_dbupdate:

/home/mario/miniconda3/envs/pydca/lib/python3.6/site-packages/click/core.py:754: DtypeWarning: Columns (6) have mixed types.Specify dtype option on import or set low_memory=False.
return __callback(*args, **kwargs)
Traceback (most recent call last):
File "/home/mario/miniconda3/envs/pydca/bin/evcouplings_dbupdate", line 8, in
sys.exit(app())
File "/home/mario/miniconda3/envs/pydca/lib/python3.6/site-packages/click/core.py", line 1128, in call
return self.main(*args, **kwargs)
File "/home/mario/miniconda3/envs/pydca/lib/python3.6/site-packages/click/core.py", line 1053, in main
rv = self.invoke(ctx)
File "/home/mario/miniconda3/envs/pydca/lib/python3.6/site-packages/click/core.py", line 1395, in invoke
return ctx.invoke(self.callback, **ctx.params)
File "/home/mario/miniconda3/envs/pydca/lib/python3.6/site-packages/click/core.py", line 754, in invoke
return __callback(*args, **kwargs)
File "/home/mario/miniconda3/envs/pydca/lib/python3.6/site-packages/evcouplings/utils/update_database.py", line 189, in app
run(**kwargs)
File "/home/mario/miniconda3/envs/pydca/lib/python3.6/site-packages/evcouplings/utils/update_database.py", line 132, in run
s_new.create_sequence_file(sifts.format(year=year, month=month, day=day, extension="fasta"))
File "/home/mario/miniconda3/envs/pydca/lib/python3.6/site-packages/evcouplings/compare/sifts.py", line 448, in create_sequence_file
seqs = fetch_uniprot_mapping(ch)
File "/home/mario/miniconda3/envs/pydca/lib/python3.6/site-packages/evcouplings/compare/sifts.py", line 107, in fetch_uniprot_mapping
r.status_code, url
evcouplings.utils.system.ResourceError: Invalid status code (405) for URL: https://www.uniprot.org/mapping/

It seems that https://www.uniprot.org/mapping/ does not exist. What would be the current web source? Thanks!

@hermannschwaerzlerUIBK
Copy link

hermannschwaerzlerUIBK commented Dec 20, 2023

Hi @MarioAsti8,

I had the very same problem. I was able to solve it by installing the development-version of EVcouplings as this problem was fixed some time ago (see commit a50bd0f) but this fix is not included in the release-version as that one is quite old.

What I did was

pip install https://github.com/debbiemarkslab/EVcouplings/archive/develop.zip

@MarioAsti8
Copy link
Author

Hi @hermannschwaerzlerUIBK ,

It looks like it worked, thanks! But it has been running for about 17 hours now, should it be taking this long? I have a .fasta and .csv file in the SIFTS directory and a .fasta in the uniprot directory. How long should it be taking? Thanks!

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