-
Notifications
You must be signed in to change notification settings - Fork 11
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
Further small updates to examples, quickmodel, and pymcmodels #113
Conversation
# log_F_PL is highly correlated with DeltaG | ||
mcmc.use_step_method(pymc.AdaptiveMetropolis, [pymc_model.log_F_PL, pymc_model.DeltaG], scales={ pymc_model.log_F_PL : 0.1, pymc_model.DeltaG : 0.1 }) | ||
# Uncomment below to use log_F_PL highly correlated with DeltaG to improve sampling somewhat. | ||
#mcmc.use_step_method(pymc.AdaptiveMetropolis, [pymc_model.log_F_PL, pymc_model.DeltaG], scales={ pymc_model.log_F_PL : 0.1, pymc_model.DeltaG : 0.1 }) |
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.
I think we have to add back Metropolis
methods for log_F_PL
and DeltaG
.
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.
That would be something like
mcmc.use_step_method(pymc.Metropolis, getattr(pymc_model, 'log_F_PL'), proposal_sd=0.1, proposal_distribution='Normal')
mcmc.use_step_method(pymc.Metropolis, getattr(pymc_model, 'DeltaG'), proposal_sd=0.1, proposal_distribution='Normal')
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.
Aren't they still there? https://github.com/choderalab/assaytools/blob/master/AssayTools/pymcmodels.py#L771-L772
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.
Oh! Right, thanks!
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.
Yes, those exact lines were never removed and are still at lines 771-2.
All these changes are done! You can now define Mergeable when checks pass. |
Woohoo! |
In this PR I hope to tackle a few small updates:
env PYTHONPATH="./"
quickmodel
to be slightly more flexible, currently it seems to stop at 4 ligands, which is not how our 384-well plates are organizedAdaptiveMetropolis
in pymcmodelsquickmodel