You can use the g_cluster gromacs utility.
Once you get the cluster.log file with the list of clusters and cluster members,
you can calculate the unbiased cluster population by summing, for each cluster,
the weights of all cluster members obtained from the reweighting procedure (and normalize).
You could also account for the different weights in the clustering procedure itself,
but I am afraid you have to modify the g_cluster utility to read the weights.
Max
> On Jan 29, 2017, at 11:39, Mandar Kulkarni <
mandar.kul...@gmail.com> wrote:
>
> Thanks a lot, Gareth. I will check first how gromacs tools can help me.
>
> On 29-Jan-2017 7:35 pm, "Gareth Tribello" <
gareth....@gmail.com> wrote:
> Hello
>
> Well done on fixing your problem by yourself first of all. In terms of the clustering I don’t think there are any clustering algorithms implemented within PLUMED at the moment. I think there are some tools within gromacs that you can use. Alternatively these things are not too hard to write yourself. If you take a look at numerical recipes in c++ you will find the algorithms that do some of these things.
>
> I hope this helps
> Gareth
>
>> On 29 Jan 2017, at 09:53, mandar kulkarni <
mandar.kul...@gmail.com> wrote:
>>
>> Hi everyone,
>> I have solved the confusion I had regarding combining metad.bias and wte.bias. The modifications in reweight.dat script are shown below:
>>
>> PACE=1
>>
>> ### Reading external bias
>> EXTERNAL ARG=ene FILE=BIAS_PTWTE.0.dat LABEL=wte
>> ener: REWEIGHT_BIAS TEMP=300.0
>>
>> ## During HISTOGRAM calculations LOGWEIGHTS are considered from both MeatD and Energy bias
>> LOGWEIGHTS=ener,reweight
>>
>> I am using mdrun -rerun option so that program can have energy values while reweighting.
>>
>> I have another question now, regarding cluster analysis.
>> Is there any possible way in plumed 2.3 so as to get reweighted trajectory to perform cluster analysis. If not, please can anyone provide guidelines or redirect me to further reading. Any help will be highly appreciated. Thanks in advance.
>>
>> On Wednesday, 25 January 2017 22:53:23 UTC+9, mandar kulkarni wrote:
>> Hello everyone,
>>
>> I have performed PTMetaD-WTE Belfast tutorial (GROMACS 5.0.7 + PLUMED 2.3) and trying to reweight along phi,psi using Tiwary-Parrinello reweighting scheme (J. Phys. Chem. B, 2015, 119 (3), 736–742). However, I am unable to figure out how I can combine bias from WTE (wte.bias) and metadynamic bias (metad.bias). I have attached reweighting script with the mail and it gives me the following error:
>>
>> "+++ message: assertion failed collectEnergy && energyHasBeenSet
>> Segmentation fault (core dumped)"
>>
>> The previous discussions in the list shows this problem exists while using ENERGY CV. Please,guide me to understand how to perform correct reweighting in this case.
>>
>> Also, on the similar lines, I have another question. Let's say I am performing PTMetaD-WTE simulation with ENERGY, CV1, CV2 and Wall potential on CV3 (CV3 is not biased) , How can I combine all 3 potentials (wte.bias, metad.bias and wall.bias)
>>
>> Thanks in advance.
>>
>>
>> Best Regards,
>> Mandar Vinod Kulkarni
>>
>> --
>> You received this message because you are subscribed to the Google Groups "PLUMED users" group.
>> To unsubscribe from this group and stop receiving emails from it, send an email to
plumed-users...@googlegroups.com.
>> To view this discussion on the web visit
https://groups.google.com/d/msgid/plumed-users/865660a0-c9fc-4d21-a143-b5302b111a86%40googlegroups.com.
> To unsubscribe from this group and stop receiving emails from it, send an email to
plumed-users...@googlegroups.com.
> --
> You received this message because you are subscribed to the Google Groups "PLUMED users" group.
> To unsubscribe from this group and stop receiving emails from it, send an email to
plumed-users...@googlegroups.com.
> To view this discussion on the web visit
https://groups.google.com/d/msgid/plumed-users/CAKC_24hqfMsS0hnKFz_1b_QSi7zDgxiqZwWHj5gw5E8ShG7meg%40mail.gmail.com.