Last active
August 29, 2015 14:20
-
-
Save hainm/2f73a706b067f6e2679b to your computer and use it in GitHub Desktop.
check_rmsd_from_dataset
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| # 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