Closed yhgon closed 2 years ago
Heterogens and hydrogens are totally different things. Heterogens are residues other than standard amino acids and nucleotides. If you don't want to add hydrogens, don't call addMissingHydrogens()
.
These Hydrogens came from Add Hydrogen, Add Solvent process to prepare OpenMM simulation. I want to delete hydrogens after OpenMM simulation compare Rg with original PDB. So I make these simple step to reproduce my situation.
I want to know any option to eliminate these hydrogens in protein residues without any external tools.
You can use Modeller.delete()
to do that. See http://docs.openmm.org/latest/userguide/application/03_model_building_editing.html and http://docs.openmm.org/latest/api-python/generated/openmm.app.modeller.Modeller.html#openmm.app.modeller.Modeller.delete. Something like this:
hydrogens = [a for a in topology.atoms() if a.element == element.hydrogen]
modeller.delete(hydrogens)
thanks what I want. I hope PDFFixer would add this feature in additional function.
I add heterogen and water and output is expected as
input.pdb
andoutput.pdb
however, when I delete heterogen withfixer.removeHeterogens(False)
option as belowdel_het.pdb
it still have Hydrogen atom. how to eliminate it?input PDB
output.pdb
del_het.pdb