Hi, I would like to count the number of hydrogen bonds in a trajectory (it is a dcd trajectory with pdb topology)
Using
from MDAnalysis.analysis.hydrogenbonds import HydrogenBondAnalysis as HBA
hbonds = HBA(universe=u)
hbonds.run()
gives the error
NoDataError: This Universe does not contain charge information
Same happens if I try to guess the hydrogens and acceptors.
If I specify the hydrogens and acceptors manually by
hbonds = HBA(universe=u,hydrogens_sel="name H1 H2",acceptors_sel="name O")
I get the error
NoDataError: Cannot assign donor-hydrogen pairs via topology as no bond information is present. Please either: load a topology file with bond information; use the guess_bonds() topology guesser; or set HydrogenBondAnalysis.donors_sel so that a distance cutoff can be used.
Would be grateful for any hints
Thank you
Alexej