volkamerlab / teachopencadd

TeachOpenCADD: a teaching platform for computer-aided drug design (CADD) using open source packages and data
https://projects.volkamerlab.org/teachopencadd
Creative Commons Attribution 4.0 International
754 stars 201 forks source link

T008-T010: Cannot download PDB structure via MMTF API anymore #419

Open Q84-wq opened 1 month ago

Q84-wq commented 1 month ago

Hello, I want to notice that the support of mmtf.rcsb.org is no longer available, so the function mmtf.fetch() in opencadd.Structure doesn't work anymore. I ask you, please, change this code so it can work. If you know the avaliable url for mmtf library, I could change it in utils/constants, so I can use these talktorials. It returns me Errno 11001: gaierror and URLError Terminal: pip install mmtf-python Console: import mmtf mmtf.fetch('4TRO')

4TRO is for example

dominiquesydow commented 1 month ago

Hello,

Many thanks for reporting this to us. Apparently the MMTF format is no longer supported by the RCSB and replaced by the BCIF format. https://www.rcsb.org/news/feature/65a1af31c76ca3abcc925d0c

Hence, also the mmtf package, which is a Python implementation of the MMTF API, is not in use any more.

We will have a look how to use the BCIF API instead.

As the corresponding function in opencadd‘s Structure object mimics mdanalysis‘ Universe object, I think we also have to check in there. https://github.com/MDAnalysis/mdanalysis/blob/develop/package/MDAnalysis/coordinates/MMTF.py#L56

@AndreaVolkamer is there anyone in your lab who can take a look at this or even has already dealt with this?

Many thanks!

Q84-wq commented 1 month ago

I also noticed that I couldn't install package teachopencadd where was function seed_everything () because of the tensorflow-base.2.18.0 (something like this). Conda told me that I had corrupted file, pip told me that there was parse-function problem(if I remember correctly). I only want to say that I could resolve this problem with the help of pip install pytorch-lightning=1.7.7, where pytorch-lightning utilities.seed had the same function.

Q84-wq commented 1 month ago

I am sorry for interrupting, I also have a question, when can the problem with mmtf package be resolved (changing the library, I mean)? Anyway, thank you very much for noticing my message_s!

dominiquesydow commented 1 month ago

I also noticed that I couldn't install package teachopencadd where was function seed_everything () because of the tensorflow-base.2.18.0 (something like this). Conda told me that I had corrupted file, pip told me that there was parse-function problem(if I remember correctly). I only want to say that I could resolve this problem with the help of pip install pytorch-lightning=1.7.7, where pytorch-lightning utilities.seed had the same function.

Hi @Q84-wq, I moved this issue to a stand-alone issue: https://github.com/volkamerlab/teachopencadd/issues/421.

dominiquesydow commented 1 month ago

I am sorry for interrupting, I also have a question, when can the problem with mmtf package be resolved (changing the library, I mean)? Anyway, thank you very much for noticing my message_s!

Hi @Q84-wq,

I cannot give a good timeline as it is holiday season for most people in the lab atm and I am on mat leave. I'd think a couple of weeks at least to get all the updates in. I am very sorry for the inconvenience!

dominiquesydow commented 1 month ago

Progress on solving this issue on opencadd's end here: https://github.com/volkamerlab/opencadd/issues/159