-
Notifications
You must be signed in to change notification settings - Fork 16
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Refactor RBFE code and fix various bugs #775
Conversation
all_fwd_delta_us.append(fwd_delta_u) | ||
all_rev_delta_us.append(rev_delta_u) | ||
|
||
# sanity check - I don't think the dG calculation commutes with its components, so we have to re-estimate |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@maxentile this is where the delta_U decomposition is done, I've added a comment here for future readers
timemachine/fe/rbfe.py
Outdated
rev_delta_u = beta * (prev_U_fn(cur_frames, cur_boxes) - cur_U_fn(cur_frames, cur_boxes)) | ||
|
||
dG, dG_err = pymbar.BAR(fwd_delta_u, rev_delta_u) | ||
dG /= beta |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
dg /= beta converts to kJ/mol (so update plot_BAR title units or convert after passing to plot_BAR)
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
willfix
timemachine/fe/rbfe.py
Outdated
Configuration for the host system. | ||
|
||
n_frames: int | ||
number of samples to generate for each lambda windows |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
"generate for endstate lambda windows"
Since you filter the intermediates below
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
... where each sample is after 750 steps of MD.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
willfix
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
to clarify, this is saying that each window runs for n_frames*1000 steps of MD. It's independent of how many frames we store etc. I'll add a note in the return type that only first and last windows are currently returned.
WIP WIP WIP fat finger WIP WIP WIP labels Typing write less units label units Disable chiral terms in combine function Better schedule Oops Clean-up Add docstrings WIP Add more bins Update per jkaus comments Add a nightly test Improve plotting and address mcwiit and jfass comments Add matplotlib as a dependency
lgtm! |
This PR
fe/rbfe.py
to be more modular