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

ValueError: 'P' is not in list #369

Open
GuhLelouch opened this issue Aug 4, 2023 · 2 comments
Open

ValueError: 'P' is not in list #369

GuhLelouch opened this issue Aug 4, 2023 · 2 comments

Comments

@GuhLelouch
Copy link

GuhLelouch commented Aug 4, 2023

Hi all,

When I run PDB2PQR (web) with my protein and a ligand, the .pqr file is not generated and the following error is shown in pdb2pqr.stderr.txt:

--------------------------------------------------------------------------------------------------------
INFO:Applying pKa values at a pH of 7.00:
WARNING:PDB2PQR could not identify the following residues and residue numbers as returned by PROPKA or PDB2PKA
WARNING:             ACO 393 B
INFO:Adding hydrogens to biomolecule.
INFO:Debumping biomolecule (again).
INFO:Optimizing hydrogen bonds
INFO:Applying force field to biomolecule states.
INFO:Processing ligand.
WARNING:Using ZAP9 forcefield for ligand radii.
CRITICAL:'P' is not in list
CRITICAL:Giving up.
Traceback (most recent call last):
  File "/usr/local/lib/python3.8/dist-packages/pdb2pqr/main.py", line 792, in main_driver
    results = non_trivial(
  File "/usr/local/lib/python3.8/dist-packages/pdb2pqr/main.py", line 672, in non_trivial
    ligand.assign_parameters()
  File "/usr/local/lib/python3.8/dist-packages/pdb2pqr/ligand/mol2.py", line 330, in assign_parameters
    self.assign_charges()
  File "/usr/local/lib/python3.8/dist-packages/pdb2pqr/ligand/mol2.py", line 348, in assign_charges
    atom.charge = atom.formal_charge
  File "/usr/local/lib/python3.8/dist-packages/pdb2pqr/ligand/mol2.py", line 294, in formal_charge
    p_atom = self.bonds[0].atoms[elements.index("P")]
ValueError: 'P' is not in list

The above exception was the direct cause of the following exception:

Traceback (most recent call last):
  File "/usr/local/bin/pdb2pqr30", line 8, in <module>
    sys.exit(main())
  File "/usr/local/lib/python3.8/dist-packages/pdb2pqr/main.py", line 829, in main
    if main_driver(args) == 1:
  File "/usr/local/lib/python3.8/dist-packages/pdb2pqr/main.py", line 802, in main_driver
    raise RuntimeError from err
RuntimeError

Another user had the same problem with "ValueError: 'P' is not in list" in May, but apparently there was no conclusion on how to solve it. However, in my case, the ligand does contain P atoms.

I appreciate any help you may provide.

Best regards,

Gustavo

@sobolevnrm
Copy link
Member

Can you provide a PDB ID for a structure that generates this error?

@GuhLelouch
Copy link
Author

I encountered the same error again, but this time on my installation instead of the web server. The ligands that I want to process belong to the PDB ID 1M3Z.

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