Skip to content

What is the purpose of using guess bond or guess atom before calculating the fingerprint? #172

Answered by cbouy
tjrong123 asked this question in Q&A
Discussion options

You must be logged in to vote

Yes I think PSF always have bonds specified, although you might need to add in elements since PSF doesn't have them:

import MDAnalysis as mda
from MDAnalysis.topology.guessers import guess_types

u =mda.Universe(PSF_file)
u.add_TopologyAttr('elements', guess_types(u.atoms.names))

and then you should be good to go (and guessing elements is much safer and faster than guessing bonds so it's preferable to always use a topology file format that has bonds defined)

Replies: 1 comment 3 replies

Comment options

You must be logged in to vote
3 replies
@tjrong123
Comment options

@cbouy
Comment options

Answer selected by tjrong123
@tjrong123
Comment options

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants