Closed mtrellet closed 6 years ago
If you like, you could certainly make your own Alphabet
subclass for ligands. But you're supposed to pass ChemComp
objects for each ligand directly to the Entity
constructor. That being said, you'll run into problems later on (since the dumpers assume all entities are polymeric) but I'll work on that and update this issue accordingly.
The library should now have basic support for writing out structures containing nonpolymers, although there are still a few loose ends. See the ligands_water.py
example, and open issues for any further problems you run into.
HADDOCK allows having ligands (non-polymer) atoms in the docking system. Those ligands constitute sometimes a complete subunit to be docked (protein-ligand docking). When trying to automate the creation of an IHM mmCIF file from a PDB file, we encountered the following error:
The code that returns the error (I voluntarily skipped some parts, tell me if you need more information):
One workaround could be to create a non-polymer alphabet but I have the feeling that it would just create errors further down the pipeline. So a solution would be, I guess, to support non-polymeric entities. However I'm well aware that this requires some significant efforts..!