hybrid_{complex,solvent}.pdb written by FAH generation code is missing CONECT records for ligands B state
See original GitHub issueThe current hybrid_{complex,solvent}.pdb
written by the FAH generation code appears to be missing CONECT
records for the ligand B state. It also incorrectly writes the MOL
residue as ATOM
instead of HETATM
.
@dominicrufa : Any idea where I would fix this? It would seem to be an issue with the OpenMM topology we use for writing if we’re writing via OpenMM’s PDBFile
.
Issue Analytics
- State:
- Created 3 years ago
- Comments:18 (17 by maintainers)
Top Results From Across the Web
No results found
Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free
Top Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
So, it took me a while to get things running but I finally made the changes (check PR #839 ). The visualization PDBs generated by the changes are as follow (green is new), for the solvent phase.
Whereas if you want to check the serialized atom mappings you would have to do something like
Which I believe is not that friendly but just to stick to numpy object files. Maybe in the future we can think of better formats for serialization (JSON, HDF?).
@ijpulidos : Here are code snippets that will be useful for adding the features John described. You’ll probably want to insert some version of these code snippets near here
Note that these code snippets assume that we’ve instantiated a
HybridTopologyFactory
object (which i’ve calledhtf
here), but given the way thefah_generator.py
code (linked above) is set up, you can use replacehtf
here withhtfs[phase]
Note: For saving the new PDB, replace
htf.old_positions(pos)
withhtf.new_positions(pos)
andhtf._topology_proposal.old_topology
withhtf._topology_proposal.new_topology
Happy to review once you’ve incorporated these changes!