Hi Andrew,
I've finally wrote the Ruby script named '
ensemble_reorient' to perform multiple-model ensemble alignment. In it took longer than I originally planned, and for good reasons
. In the process, I've consolidated and refined the two Ruby scripts ('
x3dna_md.rb' and '
extract_par.rb') for the analysis of MODEL/ENDMDL delineated molecular dynamics trajectories and NMR ensembles. For consistency, I've renamed them '
ensemble_analyze' and '
ensemble_extract'.
The ensemble_* scripts, together with added new C programs '
mutate_bases' and '
find_platform' will be released in 3DNA v2.1 in the near future. For backward compatibility, all v2.0 Perl scripts are going to be retained. From v2.2 and onwards, I am planning to eliminate all Perl scripts and use solely Ruby as the script language.
Check email to see download info for the v2.1 beta version for testing. There are still lots of rough edges, but with the groundwork laid so far, I should be able to respond quickly to any identified issues.
The help message for '
ensemble_reorient' is as follows:
------------------------------------------------------------------------
Usage:
ensemble_reorient options
Examples:
ensemble_reorient --frame-opt='-m -6' -b bpfile.dat -e 2kei.pdb
# reorient each model using the reference frame of base-pair #6
# with minor groove facing the viewer (-m)
# note the use the double dash (--) style with equal sign, and
# the options to be transfered to frame_mol must be quoted
# generate 'model_list.dat', and 'ensemble_example_trx.pdb'
ensemble_reorient -f '\-m -6' -b bpfile.dat -m model_list.dat -o reoriented.pdb
# Same transformation as above, but using an explicit list of
# models, and the transformed ensemble in 'reoriented.pdb'
# diff ensemble_example_trx.pdb reoriented.pdb
ensemble_reorient -f '\-8,9' -b bpfile.dat -e 2kei.pdb
# reorient each model using the middle reference frame between
# base-pairs #8 & #9. Again, note the quote and back slash
Options:
------------------------------------------------------------------------
--bpfile, -b <s>: File containing base-pairing info (as generated from find_pair,
and EDITED as appropriate)
--outfile, -o <s>: Output parameters file name (default: ensemble_example_trx.pdb)
--frame-opt, -f <s>: Options to transfer to frame_mol (quoted)
--ensemble, -e <s>: Model ensemble delineated with MODEL/ENDMDL
--models, -m <s>: File with explicit listing of model numbers
--help, -h: Show this message
Please check and report back any issues you experience.
Xiang-Jun