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
dstoeckel edited this page Feb 20, 2015
·
3 revisions
How can I add missing hydrogens to a protein?
BALL offers a fragment databaseBALL::FragmentDatabase to add missing information like hydrogens and bonds to a protein and to normalize the atom names.
Do not forget to set the environment variable BALL_DATA_PATH pointing to your BALL/data directory.
#include<BALL/STRUCTURE/fragmentDB.h>usingnamespaceBALL;
...
PDBFile f("myProtein.pdb");
System S;
f >> S;
// create the default-FragmentDatabase BALL::FragmentDB frag_db("");
// normalize the names
S.apply(frag_db.normalize_names);
// build the missing bonds
S.apply(frag_db.build_bonds);
// add missing hydrogens
S.apply(frag_db.add_hydrogens);