Hi Ara,
Thanks for using 3DNA, and for posting your question(s) in the forum. I am glad to hear that you found the Ruby scripts useful to your analysis of drug-DNA MD simulations -- at the very least, I take it as yet another user confirmation that the Ruby scripts are working as expected.
I am using the program to analyze drug-DNA MD simulations and would like to plot base pairs vs Twist (or Rise or Roll) values and therefore I would like to find an average of those values for each base pair over the simulation. Does bp_helical or bp_step provide that kind of info? Or I will need to write my own script for that?
Again, since I have no direct MD-simulation experience, my understanding could be incomplete. If I guess it correctly, your MD simulations should include many snapshots. The output file for each parameter (e.g.,[mono:1b7xkmyt]x3dna_md_roll.out[/mono:1b7xkmyt] for Roll) from the Ruby scripts, [mono:1b7xkmyt]
x3dna_md.rb/extract_par.rb[/mono:1b7xkmyt], contains tabulated values arranged in a m-by-n matrix, where m is the number of models/snapshots, and n is the number of base-pair steps. As noted in
the initial release post, "The output parameter table is intended to be fed into R/Matlab/Octive/Excel etc for statistical analysis or visualization." Specially, I decided deliberately not to calculate mean/std etc statistics, even though it should be straightforward to add them.
On the other hand, the files "bp_helical.par" and "bp_step.par" are from each run of the [mono:1b7xkmyt][red:1b7xkmyt]analyze[/red:1b7xkmyt][/mono:1b7xkmyt] program on a snapshot, i.e., they are from native 3DNA output, and are overwritten each time unless you renamed them. Put another way, these two files are not related to your MD analysis; instead they are intended to be used with the [mono:1b7xkmyt][red:1b7xkmyt]rebuild[/red:1b7xkmyt][/mono:1b7xkmyt] program to construct DNA structures as specified by the parameters.
HTH,
Xiang-Jun