cbc-univie / transformato

Set up relative free energy calculations using a common scaffold
https://cbc-univie.github.io/transformato/
MIT License
22 stars 6 forks source link

Potential shapes #80

Closed agrass15268 closed 2 years ago

agrass15268 commented 2 years ago

Description

With openmmtools being a rather hefty dependency for only being used for a single restraint, this implements the potential shape used by openmmtools in-code, based on the documented mix-in. It also adds two additional potential shapes to allow for more options especially when manually adding restraints to troublesome systems. Lastly, allowing explicit specification of r0 in the config.yaml allows the creating of pull-effects if so desired.

Tests for all these features have also been implemented.

Also fixes a minor bug in analysis.py that annoyingly gets printed in every result: uncertanty -> uncertainty

Example usage of r0:

    restraint4:
      k: 9
      group1: resname BMI and name C7
      group2: protein and name CA
      shape: flatbottom-twoside
      wellsize: 1.5
      r0: 9

Potential shapes implemented:

One-sided soft (openmmtools-like)

oneside

One-sided sharp

oneside-sharp

Two-sided sharp

twoside

Status

codecov-commenter commented 2 years ago

Codecov Report

Merging #80 (6fc455e) into master (bd65189) will decrease coverage by 0.24%. The diff coverage is 58.62%.