Skip to content

Instantly share code, notes, and snippets.

@hainm
Last active August 29, 2015 14:20
Show Gist options
  • Select an option

  • Save hainm/2f73a706b067f6e2679b to your computer and use it in GitHub Desktop.

Select an option

Save hainm/2f73a706b067f6e2679b to your computer and use it in GitHub Desktop.
check_rmsd_from_dataset
# test get reference Frame from DataSetList
traj = mdio.load("./data/md1_prod.Tc5b.x", "./data/Tc5b.top")
dslist = DataSetList()
dslist.add_set("ref_frame", "myname")
dslist[0].top = traj.top.copy()
# use last Frame for reference
dslist[0].append(traj[-1])
# dslist.get_reference_frame("myname")
# create Action_Rmsd object
act = adict['rmsd']
# perform calculation.
# How can I let Action_Rmsd know about reference without loading Frame/Traj from a file?
# calling act( ...) will combine all steps in cpptraj into one (init, process top, DoAction, ...)
act("@CA", traj, dslist=dslist)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment