Skip to content

mda equivalent of Rdkit's addHs #4889

Answered by hmacdope
corey-taylor2 asked this question in Q&A
Discussion options

You must be logged in to vote

You can use the RDKit converter to go directly to RDKit and then add the Hs there!

from rdkit import Chem
import MDAnalysis as mda
u = mda.Universe("protein.pdb")
atoms = u.select_atoms("name CA")
rdkit_mol = atoms.convert_to("RDKIT")
# do whatever you like in RDKit.

Replies: 1 comment 4 replies

Comment options

You must be logged in to vote
4 replies
@corey-taylor2
Comment options

@hmacdope
Comment options

@orbeckst
Comment options

@corey-taylor2
Comment options

Answer selected by corey-taylor2
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
3 participants