Join GitHub today
GitHub is home to over 28 million developers working together to host and review code, manage projects, and build software together.Sign up
Add automatic HBond donor detection #2120
A common nuisance for hydrogen bonds is selecting the donor atom for each hydrogen. Ideally there could be a convenience function in
def select_donors(hydrogens, ?????): ????? return donors
The easiest way to implement this is to use bonds, ie just grab the bonded atom for each hydrogen, but not all topologies will have bonds, so a quick workaround for this too will be needed.