I'm not sure if I'm misusing this tool, but, at a quick glance, I believe it has support for CIF files. However, if I try to run it with https://www.ebi.ac.uk/pdbe/entry-files/download/4mvj.cif:
$ pdb2pqr --log-level=DEBUG 4mvj.cif 4mvj.pqr
It fails with the following error:
...
INFO:Loading molecule: 4mvj.cif
Traceback (most recent call last):
File "/Users/todor/Projects/grisell/apbs/.venv/bin/pdb2pqr", line 10, in <module>
sys.exit(main())
~~~~^^
File "/Users/todor/Projects/grisell/apbs/.venv/lib/python3.13/site-packages/pdb2pqr/main.py", line 841, in main
if main_driver(args) == 1:
~~~~~~~~~~~^^^^^^
File "/Users/todor/Projects/grisell/apbs/.venv/lib/python3.13/site-packages/pdb2pqr/main.py", line 777, in main_driver
pdblist, is_cif = io.get_molecule(args.input_path)
~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^
File "/Users/todor/Projects/grisell/apbs/.venv/lib/python3.13/site-packages/pdb2pqr/io.py", line 463, in get_molecule
pdblist, errlist = cif.read_cif(input_file)
~~~~~~~~~~~~^^^^^^^^^^^^
File "/Users/todor/Projects/grisell/apbs/.venv/lib/python3.13/site-packages/pdb2pqr/cif.py", line 1043, in read_cif
src_pdb, src_err = source(block)
~~~~~~^^^^^^^
File "/Users/todor/Projects/grisell/apbs/.venv/lib/python3.13/site-packages/pdb2pqr/cif.py", line 582, in source
"ORGANISM_COMMON: "
~~~~~~~~~~~~~~~~~~~
+ src_obj.get_value("gene_src_common_name", i)
^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
TypeError: can only concatenate str (not "NoneType") to str
I tried another file https://www.ebi.ac.uk/pdbe/entry-files/download/1hel.cif, but this one fails silently and produces an empty pqr file:
out.log
Running the same commands with PDB files works as expected.
I'm not sure if I'm misusing this tool, but, at a quick glance, I believe it has support for CIF files. However, if I try to run it with https://www.ebi.ac.uk/pdbe/entry-files/download/4mvj.cif:
It fails with the following error:
I tried another file https://www.ebi.ac.uk/pdbe/entry-files/download/1hel.cif, but this one fails silently and produces an empty
pqrfile:out.log
Running the same commands with PDB files works as expected.