Getting error message while dealing with pdb_selchain.py

Hi,
So I was following doing the tutorial for docking the multi-chain complexes. I followed all the steps in the tutorial. However, when I use the pdb_selchain.py command I get the following error message:
traceback (most recent call last):
File “/home/archi/temp/pdb-tools/pdbtools/pdb_selchain.py”, line 157, in
main()
File “/home/archi/temp/pdb-tools/pdbtools/pdb_selchain.py”, line 136, in main
for lineno, line in enumerate(new_pdb):
File “/home/archi/temp/pdb-tools/pdbtools/pdb_selchain.py”, line 121, in select_chain
if line[21] not in chain_set:
IndexError: string index out of range

Could you please suggest how to deal with this problem?

Thank you

Could be a python version problem.

You could try instead to use our new PDB-tools web server:

https://wenmr.science.uu.nl/pdbtools

Or install locally our PDB-tools from:

http://www.bonvinlab.org/pdb-tools/

Hi,

Thank you for the response. I’ll try to use the PDB-tools web server for the protein preparation.

Also I’m not sure if it is due to a Python version problem as the other python files of pdb-tools are working properly.