the "standard" manner to reweight WT metadynamics is using the
algorithm by Bonomi, Barducci and Parrinello, which is designed to do
histograms on a CV different from what you biased. You can get the
fortran code (written by Max Bonomi) on the website of the plumed
tutorial.
Given this, you can follow the procedure below, which is a bit
involved but works (I used it a few months ago):
* Do the cluster analysis.
* Assign each of the frames in your trajectory to the closest cluster,
so that for each frame you will have the "index of the closest
cluster".
* Make a COLVAR file with the biased coordinates plus the index of the
cluster computed above as a fourth variable
* Do a reweighting choosing the parameters for the histogram on the
fourth CV (the cluster index) in such a manner that you have one
cluster per bin.
You will get as an output the free energy of each cluster. I hope this
is clear enough, if you did not understand something I can give you
more details...
Giovanni
> --
> You received this message because you are subscribed to the Google Groups "PLUMED users" group.
> To post to this group, send email to plumed...@googlegroups.com.
> To unsubscribe from this group, send email to plumed-users...@googlegroups.com.
> For more options, visit this group at http://groups.google.com/group/plumed-users?hl=en.
>
>
I cannot comment on your cluster algorithm... It seems to make sense,
but I am not an expert of that (I just use one of the g_cluster
methods in gromacs).
Still, if you want to try that algorithm with a WT simulation, you
need the weight of each frame. I think this is not feasible with the
"reweight" tool, but you can use the following algorithm, which gives
similar results (Max can comment on this, since he did a lot of
comparisons between his scheme and the one below):
Compute the final fes on a (not too fine) grid using sum_hills.
Assign each frame i to a grid point s_i. You should have several
frames per grid point, otherwise your statistics are meaningless (in
this case, increase the grid spacing).
The weight of each frame is
w_i=exp(-F(s_i)/kT)/N(s_i)
where F(s) is the free energy from the grid and N(s) the number of
frames on that grid point.
Then use w_i as the weigh of each frame to do cluster analysis.
This approach assumes that:
1. the final fes computed from WT metadynamics is correct
2. the orthogonal degrees of freedom are sampled canonically.
Assumption (2) is present also in the Bonomi et al scheme, whereas
assumption (1) is additional.
Giovanni
A final note on this: if you want to do a cluster analysis consistent
with an unbiased MD you can always "duplicate" frames proportionally
to their weight or devise some scheme to retain/discard each frame
based on its weight, before feeding it into the cluster analysis.
Giovanni
> Dear Andrew,
>
> I cannot comment on your cluster algorithm... It seems to make sense,
> but I am not an expert of that (I just use one of the g_cluster
> methods in gromacs).
>
> Still, if you want to try that algorithm with a WT simulation, you
> need the weight of each frame. I think this is not feasible with the
> "reweight" tool, but you can use the following algorithm, which gives
> similar results (Max can comment on this, since he did a lot of
> comparisons between his scheme and the one below):
Hi Andrew!
If you don't want to use the clustering scheme originally proposed by Giovanni
(which has been applied also by others and seems to be working fine
in more than one situation :-)), you can assign a weight to each configuration as described below.
When we developed the WT reweighing algorithm I compared
the two approaches on alanine dipeptide and other model systems.
Results were similar, apart from the fact that the error in the FES as a function of the
non-biased variable was decreasing a little bit faster with the WT reweighing scheme
compared to the recipe below. Furthermore it was less sensitive to the final estimate of the fes
(residual corrugation, stop the simulation in a bad moment...).
Best,
Max