Skip to content

Action: REWEIGHT_BIAS

Module bias
Description Usage
Calculate weights for ensemble averages that negate the effect the bias has on the region of phase space explored used in 5 tutorialsused in 11 eggs
output value type
the weight to use for this frame to negate the effect the bias scalar

Details and examples

Calculate weights for ensemble averages that negate the effect the bias has on the region of phase space explored

If a static or pseudo-static bias is acting on the system we can remove the bias and get the unbiased probability distribution using:

The weights calculated by this action are equal to these weights can then be used in any action that computes ensemble averages. For example this action can be used in tandem with HISTOGRAM or AVERAGE.

Examples

In the following example there is a fixed restraint on the distance between atoms 1 and 2. Clearly, this restraint will have an effect on the region of phase space that will be sampled when an MD simulation is run using this variable. Consequently, when the histogram as a function of the distance, , is accumulated, we use reweighting into order to discount the effect of the bias from our final histogram.

Click on the labels of the actions for more information on what each action computes
tested on2.11
x: DISTANCECalculate the distance/s between pairs of atoms. More details ATOMSthe pair of atom that we are calculating the distance between=1,2
RESTRAINTAdds harmonic and/or linear restraints on one or more variables. More details ARGthe values the harmonic restraint acts upon=x SLOPE specifies that the restraint is linear and what the values of the force constants on each of the variables are=1.0 ATthe position of the restraint=0.0
bias: REWEIGHT_BIASCalculate weights for ensemble averages that negate the effect the bias has on the region of phase space explored This action has hidden defaults. More details TEMPthe system temperature=300

hB: HISTOGRAMAccumulate the average probability density along a few CVs from a trajectory. This action is a shortcut and it has hidden defaults. More details ... ARGthe quantities that are being used to construct the histogram=x GRID_MIN the lower bounds for the grid=0.0 GRID_MAX the upper bounds for the grid=3.0 GRID_BINthe number of bins for the grid=100 BANDWIDTHthe bandwidths for kernel density esimtation=0.1 LOGWEIGHTSthe logarithm of the quantity to use as the weights when calculating averages=bias ...
DUMPGRIDOutput the function on the grid to a file with the PLUMED grid format. More details ARGthe label for the grid that you would like to output=hB FILE the file on which to write the grid=histoB STRIDE the frequency with which the grid should be output to the file=1

Input

The arguments that serve as the input for this action are specified using one or more of the keywords in the following table.

Keyword Type Description
ARG scalar the biases that must be taken into account when reweighting

Full list of keywords

The following table describes the keywords and options that can be used with this action

Keyword Type Default Description
ARG input none the biases that must be taken into account when reweighting
TEMP optional not used the system temperature