You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Hi all,
Thanks for making the package open source. TLDR: can I avoid using the chem_comp labels added in 3dc288c?
I'd like to use this on structures that originated from outside the PDB - custom crystal structures, for instance, or docked poses. Converting with gemmi is reasonably straightforward (example file was from the RCSB in this case):
gemmi convert 1x7a.pdb 1x7a_converted.cif
but these .cif files don't work with pdbe-arpeggio:
Traceback (most recent call last):
File "/Users/ljmartin/miniconda3/envs/compchem/bin/pdbe-arpeggio", line 8, in <module>
sys.exit(main())
File "/Users/ljmartin/miniconda3/envs/compchem/lib/python3.9/site-packages/arpeggio/scripts/process_protein_cli.py", line 150, in main
run_arpeggio(args)
File "/Users/ljmartin/miniconda3/envs/compchem/lib/python3.9/site-packages/arpeggio/scripts/process_protein_cli.py", line 159, in run_arpeggio
i_complex = InteractionComplex(
File "/Users/ljmartin/miniconda3/envs/compchem/lib/python3.9/site-packages/arpeggio/core/interactions.py", line 70, in __init__
self.component_types = protein_reader.get_component_types(filename)
File "/Users/ljmartin/miniconda3/envs/compchem/lib/python3.9/site-packages/arpeggio/core/protein_reader.py", line 425, in get_component_types
cmp_type = config.ComponentType.from_chem_comp_type(chem_comp['type'][i])
File "/Users/ljmartin/miniconda3/envs/compchem/lib/python3.9/site-packages/arpeggio/core/config.py", line 1199, in from_chem_comp_type
return ComponentType(component_types[type.upper()]).name
AttributeError: 'bool' object has no attribute 'upper'
The source of the problem is maybe obvious - 1x7a_converted.cif doesn't have a chem_comp label, it looks like this:
When loaded by gemmi, these fields are present, but are a bool (False). ComponentType in core/config.py requires a string, instead.
It looks like the chem_comp labelling was added fairly recently - in 3dc288c - is there a way to avoid using this label at all?
Thanks
PS this conversion does work with pdbe-arpeggio when using maxit, where the chem_comp records look like this:
Hi all,
Thanks for making the package open source. TLDR: can I avoid using the chem_comp labels added in 3dc288c?
I'd like to use this on structures that originated from outside the PDB - custom crystal structures, for instance, or docked poses. Converting with gemmi is reasonably straightforward (example file was from the RCSB in this case):
but these .cif files don't work with
pdbe-arpeggio
:The source of the problem is maybe obvious - 1x7a_converted.cif doesn't have a
chem_comp
label, it looks like this:When loaded by gemmi, these fields are present, but are a bool (
False
).ComponentType
incore/config.py
requires a string, instead.It looks like the chem_comp labelling was added fairly recently - in 3dc288c - is there a way to avoid using this label at all?
Thanks
PS this conversion does work with pdbe-arpeggio when using maxit, where the chem_comp records look like this:
The text was updated successfully, but these errors were encountered: