-
Notifications
You must be signed in to change notification settings - Fork 50
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
TypeError: unsupported operand type(s) for *: 'object' and 'Forward' #101
Comments
Hi @HaoLan-compchem Is your ligand connected to the serine residue through an acyl group? Try this:
And make sure your ligand contains this substructure. In this substructure, the 5th atom corresponds to C-alpha and the 4th atom corresponds to C-beta |
Not working, same error... Here is my ligand sdf file containing Ca and Cb: Penicillin 50 51 0 0 0 0 0 0 0 0999 V2000 And the command: mk_prepare_ligand.py -i ligand_1.sdf --receptor 3upo_protein.pdb --rec_residue "B:SER:222" --tether_smarts "C(=O)OCC" --tether_smarts_indices 5 4 -o prepared.pdbqt |
Not sure if this is what you need but I was able to generate a
Using your input (but I formatted it to be able to visualize it):
My command is the same. The version of Meeko I used was:
Input and output in command prompt:
|
I'm having the same problem as well. I'm using meeko 0.5.0 and prody 2.4.1. I have tried the same thing on a Linux machine, it's the same error too. |
It is caused by some incompatibility between prody and pyparsing, downgrading pyparsing to <3.1 fixes the issue. |
Dear Meeko developer,
I tried to generate pdbqt file for a covalent ligand following the tutorial. The example was from https://autodock.scripps.edu/resources/covalent-docking/ (those are based on old python2 scripts... so I am seeking help from Meeko)
My command is:
mk_prepare_ligand.py
-i ligand.sdf
--receptor 3upo_protein.pdb
--rec_residue "B:SER:222"
--tether_smarts "C(=O)-O-C"
--tether_smarts_indices 4 3
-o prepared.pdbqt
However I got such error:
CovalentBuilder> searching for residue: chid B and resname SER and resnum 222 and (name CA or name CB)
Traceback (most recent call last):
File "/home/haolan/miniconda3/bin/mk_prepare_ligand.py", line 312, in
covalent_builder = CovalentBuilder(rec_prody_mol, args.rec_residue)
File "/home/haolan/miniconda3/lib/python3.10/site-packages/meeko/covalentbuilder.py", line 63, in init
out = self._generate_prody_selection(selection_tuple)
File "/home/haolan/miniconda3/lib/python3.10/site-packages/meeko/covalentbuilder.py", line 80, in _generate_prody_selection
found = self.rec.select( sel_string )
File "/home/haolan/miniconda3/lib/python3.10/site-packages/prody/atomic/atomic.py", line 232, in select
return SELECT.select(self, selstr, **kwargs)
File "/home/haolan/miniconda3/lib/python3.10/site-packages/prody/atomic/select.py", line 895, in select
indices = self.getIndices(atoms, selstr, **kwargs)
File "/home/haolan/miniconda3/lib/python3.10/site-packages/prody/atomic/select.py", line 953, in getIndices
torf = self.getBoolArray(atoms, selstr, **kwargs)
File "/home/haolan/miniconda3/lib/python3.10/site-packages/prody/atomic/select.py", line 1004, in getBoolArray
parser = self._getParser(selstr)
File "/home/haolan/miniconda3/lib/python3.10/site-packages/prody/atomic/select.py", line 1103, in _getParser
parser.enablePackrat()
File "/home/haolan/miniconda3/lib/python3.10/site-packages/pyparsing/util.py", line 265, in _inner
return fn(*args, **kwargs)
File "/home/haolan/miniconda3/lib/python3.10/site-packages/pyparsing/core.py", line 1132, in enable_packrat
ParserElement.packrat_cache = _FifoCache(cache_size_limit) # type: ignore[assignment]
File "/home/haolan/miniconda3/lib/python3.10/site-packages/pyparsing/util.py", line 105, in init
keyring = [object()] * size
TypeError: can't multiply sequence by non-int of type 'Forward'
I also tried the example from Meeko (bash script as provided), the exact same error was given...
Any solutions for this? Thank you very much
The text was updated successfully, but these errors were encountered: