Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fingerprint fails on single frame trajectory #187

Closed
nezix opened this issue Feb 20, 2024 · 1 comment
Closed

Fingerprint fails on single frame trajectory #187

nezix opened this issue Feb 20, 2024 · 1 comment

Comments

@nezix
Copy link

nezix commented Feb 20, 2024

Loading a protein-ligand complex from a single PDB with MDAnalysis creates a trajectory with 1 frame.
Sending that to the run function fails because it expects a FrameIteratorSliced but it is FrameIteratorAll:

u = mda.Universe("mycomplex.pdb")
lig = u.select_atoms("resname LIG")
prot = u.select_atoms("protein")
fp = prolif.Fingerprint()
fp.run(u.trajectory[0], lig, prot) # → Timestep object has no attribute 'start'
fp.run(u.trajectory[:], lig, prot) # → 'FrameIteratorAll' object has no attribute 'start'
fp.run(u.trajectory[:1], lig, prot) # → 'FrameIteratorAll' object has no attribute 'start'

Is that the expected behaviour ? Should I just use fp.generate() instead ?

@cbouy
Copy link
Member

cbouy commented Feb 20, 2024

Hi,

Please refer to the documentation for this, there's a tutorial section on using PDB input files there.

Feel free to reopen this issue if you have other related questions

@cbouy cbouy closed this as completed Feb 20, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants