Skip to content

Latest commit

 

History

History
169 lines (130 loc) · 5.14 KB

File metadata and controls

169 lines (130 loc) · 5.14 KB

Getting Started

Requirements

  • Python >= 3.11

Installation

To install the released version:

pip install CodeEntropy

To install the latest development version:

git clone https://github.com/CCPBioSim/CodeEntropy.git
cd CodeEntropy
pip install .

Input

For supported format (any topology and trajectory formats that can be read by MDAnalysis) you will need to output the coordinates and forces to the same file. Please consult the documentation for your MD simulation code if you need help outputting the forces.

Units

The program assumes the following default unit

Units
Quantity Unit
Length Å
Time ps
Charge e
Mass u
Force kJ/(mol·Å)

Quick start guide

A quick and easy way to get started is to use the command-line tool which you can run in bash by simply typing CodeEntropy

For help

CodeEntropy --help

Arguments

Arguments should go in a config.yaml file. The values in the yaml file can be overridden by command line arguments. The top_traj_file argument is necessary to identify your simulation data, the others can use default values.

Arguments
Arguments Description Default Type
--top_traj_file Path to Structure/topology file followed by Trajectory file(s). Any MDAnalysis readable files should work (for example GROMACS TPR and TRR or AMBER PRMTOP and NETCDF). You will need to output the coordinates and forces to the same file . Required, no default value list of str
--selection_string Selection string for CodeEntropy such as protein or resid, refer to MDAnalysis.select_atoms for more information. "all": select all atom in trajectory str
--start Start analysing the trajectory from this frame index. 0: From begining int
--end Stop analysing the trajectory at this frame index -1: end of trajectory int
--step Interval between two consecutive frame indices to be read 1 int
--bin_width Bin width in degrees for making the dihedral angle histogram 30 int
--temperature Temperature for entropy calculation (K) 298.0 float
--verbose Enable verbose output False bool
--outfile Name of the file where the text format output will be written. outfile.out str
--force_partitioning Factor for partitioning forces when there are weak correlations 0.5 float
--water_entropy Use Jas Kalayan's waterEntropy code to calculate the water conformational entropy False bool
--grouping How to group molecules for averaging molecules str

Example #1

Example config.yaml file.

.. literalinclude:: config.yaml

You must specify the location of the topology/trajectory file(s) for the top_traj_file variable as there is no default and CodeEntropy cannot run without the data. The temperature variable should be adjusted to the temperature from the simulation. Changing the force_partitioning variable is possible, but not recommended unless you understand what it does and have a good reason to change it.

If you set end to -1, it will stop at the last frame of the trajectory. So, start = 0, end = -1, and step = 1 will use the whole trajectory.

To run CodeEntropy, you want to use the command line and change into the directory where your config.yaml file is located. As long as the file is named config.yaml, CodeEntropy will find it automatically.

CodeEntropy

Example #2

To use the same settings as in Example #1, but override trajectory information, you can use the command line flags.

CodeEntropy --top_traj_file "md_A4_dna.tpr" "md_A4_dna_xf.trr"

Or as an alternative, you could edit the config.yaml file and use the CodeEntropy command as in the first example.

CodeEntropy creates job* directories for the output, where * is a job number choosen by the so that there are sequentially numbered directories when you rerun CodeEntropy in the same working directory. Each job* directory contains the output json file and a subdirectory with the log files.

Data Files

The example files mentioned above can be downloaded.

Lysozyme example (~1.2GB)

DNA fragment example (~1MB)