Hi Nikolay,
Glad to hear that you've made progress. However, from my understanding of what you described, it seems something is still not quite right. The fixed-name file bp_step.par contains only the parameters for a single structure (snapshot), not the whole ensemble. It is a bit more difficult to explain the details in text, so I would suggest you repeat the examples in the directory $X3DNA/examples/ensemble/md/:
cd $X3DNA/examples/ensemble/md/
x3dna_ensemble analyze -h
x3dna_ensemble extract -h
Once you understand how the examples work, you should be able to apply the same idea to the analysis of your MD trajectories. Of course, if you have any questions, please do not hesitate to post back at the forum.
Xiang-Jun
PS: command-line help
The help page for x3dna_ensemble analyze
------------------------------------------------------------------------
Analyze a MODEL/ENDMDL delineated ensemble of NMR structures or MD
trajectories. All models must correspond to different conformations of
the same molecule. A template base-pair input file, generated with
'find_pair' and corrected manually as necessary, must be provided.
Usage:
x3dna_ensemble analyze options
Examples:
x3dna_ensemble analyze -b bpfile.dat -e sample_md0.pdb
# 21 models (0-20); output (default): 'ensemble_example.out'
# also generate 'model_list.dat', see example below
x3dna_ensemble analyze -b bpfile.dat -m model_list.dat -o ensemble_example2.out
# diff ensemble_example.out ensemble_example2.out
x3dna_ensemble analyze -b bpfile.dat -p 'pdbdir/model_*.pdb' -o ensemble_example3.out
# note to quote the -p option; 20 models (1-20)
# also generate 'pdb_list.dat', see example below
x3dna_ensemble analyze -b bpfile.dat -l pdb_list.dat -o ensemble_example4.out
# diff ensemble_example3.out ensemble_example4.out
# note the order of the models: 1, 10..19, 2, 20, 3..9
Options:
------------------------------------------------------------------------
--bpfile, -b <s>: Name of file containing base-pairing info
--outfile, -o <s>: Output file (default: ensemble_example.out)
--ensemble, -e <s>: Ensemble delineated with MODEL/ENDMDL pairs
--models, -m <s>: File containing an explicit list of model numbers
--pattern, -p <s>: Pattern of model files to process (e.g., *.pdb)
--list, -l <s>: File containing an explicit list of models
--info, -i: Show only model info in the ensemble [with -e]
--help, -h: Show this message
The help page for x3dna_ensemble extract
------------------------------------------------------------------------
Extract 3DNA structural parameters of an ensemble of NMR structures or
MD trajectories, after running 'x3dna_ensemble analyze'. The extracted
parameters are intended to be exported into Excel, Matlab and R etc for
further data analysis/visualization.
Usage:
x3dna_ensemble extract options
Examples:
x3dna_ensemble extract -l
# to see a list of all parameters
x3dna_ensemble extract -p prop
# for propeller, no need to specify full: -p pr suffices
# -p 36 also fine (see above); use 'ensemble_example.out'
x3dna_ensemble extract -p slide -s , -f ensemble_example3.out
# comma separated, from file 'ensemble_example3.out'
x3dna_ensemble extract -p roll -s ' ' -n -o roll.dat
# space separated, no row-label, to file 'roll.dat'
x3dna_ensemble extract -e 1 -p chi1
# extract the chi torsion angle of strand I, but exclude
# those from the two terminal base pairs. For comparison,
# run also: x3dna_ensemble extract -p chi1
x3dna_ensemble extract -a
# extract all parameters, each in a separate file
Options:
------------------------------------------------------------------------
--separator, -s <s>: Separator for fields [\t] (default: )
--par-name, -p <s>: Name of parameter to extract
--fromfile, -f <s>: Parameters file (default: ensemble_example.out)
--outfile, -o <s>: File of selected parameter (default: stdout)
--end-bps, -e <i+>: Number of end pairs to ignore (default: 0, 0)
--all, -a: Extract all parameters into separate files
--clean, -c: Clean up parameter files by the -a option
--list, -l: List all parameters
--no-1col, -n: Delete the first (label) column
--help, -h: Show this message