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

_formatstodict is broken #2660

Open
gorrie06 opened this issue Dec 22, 2023 · 1 comment
Open

_formatstodict is broken #2660

gorrie06 opened this issue Dec 22, 2023 · 1 comment

Comments

@gorrie06
Copy link

Environment Information

Open Babel version: 3.1.0
Operating system and version: windows 11 running ubuntu in WSL running Anaconda3

Expected Behavior

I am running the script prepareCovalent.py to prepare a ligand for covalent docking in AutoDock Vina. I have tried with my own files and the tutorial files provided. The script imports pybel.py, when it attempts to perform _formatstodict it crashes. Instead of the expected output of a .pdb file with the ligand properly oriented in 3D space for covalent docking I get an error message.

Actual Behavior

This is the error message I get:

(vina) gorrie06@DMGLaptop:~/docking/covalent$ python ~/docking/covalent/adcovalent/prepareCovalent.py --ligand /3upo_test/ligand.mol2 --ligindices 1,2 --receptor /3upo_test/3upo_protein.pdb --residue B:SER222 --outputfile ligcov.pdb
Traceback (most recent call last):
File "/home/gorrie06/docking/covalent/adcovalent/prepareCovalent.py", line 36, in
import pybel
File "/home/gorrie06/anaconda3/envs/vina/lib/python2.7/site-packages/pybel.py", line 89, in
informats = _formatstodict(_obconv.GetSupportedInputFormat())
File "/home/gorrie06/anaconda3/envs/vina/lib/python2.7/site-packages/pybel.py", line 68, in _formatstodict
broken = [(x, y.strip()) for x, y in broken]
ValueError: need more than 1 value to unpack

Steps to Reproduce

This file contains the prepareCovalent.py script and the tutorial files for covalent docking
adCovalentDockResidue_v1.2.tar.gz
This is the prepareCovalent script
prepareCovalent.txt
This file contains pybel.py
original-pybel.txt
If you run the prepareCovalent script with the following inputs:

python ~/local/adcovalent/prepareCovalent.py --ligand ligand.mol2
--ligindices 1,2
--receptor 3upo_protein.pdb
--residue B:SER222
--outputfile ligcovalent.pdb

you get the error message

Copy link

welcome bot commented Dec 22, 2023

Thanks for opening your first issue here! Be sure to follow the issue template!

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

1 participant