-
Notifications
You must be signed in to change notification settings - Fork 14
remove AbsoluteMeasurement concept #84
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
Conversation
IAlibay
left a comment
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.
Overall lgtm, I really like this idea.
Only comments are:
- A bit more documentation on behaviour would be good
- It's hard to tell if this is good because I like it, I'd be ok with merging this quickly, but if we can have someone else gloss over the idea afterwards that'd be grand.
cinnabar/femap.py
Outdated
| expt_block = False | ||
| calc_block = False | ||
|
|
||
| ground = GroundState() |
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.
worth documenting that ground state is assumed to be the same for all inputs for this method?
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.
Also is there a unique string we could give it so it hashes differently?
cinnabar/femap.py
Outdated
| >>> kJpm = unit.kilojoule_per_mole | ||
| >>> experimental_result1 = AbsoluteMeasurement(label="CAT-13a", DG=-8.83 * kJpm, uncertainty=0.10 * kJpm) | ||
| >>> experimental_result2 = AbsoluteMeasurement(label="CAT-17g", DG=-9.73 * kJpm, uncertainty=0.10 * kJpm) | ||
| >>> g = GroundState() |
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.
Could you introduce the idea of label here so that folks can understand that it can be set to different states that hash differently?
|
Is "Ground state" a reference state with absolute free energy defined to be zero? If so, maybe ZeroState or ReferenceState is more clear? DiffNet permits multiple absolute free energy measurements of multiple states relative to that zero. Will it still be possible to have multiple absolute measurements? |
|
@jchodera For example, MLE would first place computed ligands against an arbitrary MLE flowchart TD
G[Experimental GroundState] -- experiment --> A[experimental A];
G -- experiment --> D[experimental B];
H[MLE GroundState] --> B[computational A];
H --> C[computational B];
B -- RBFE --> C;
G -- derived --> H;
Z[True Ground] -- ??? --> G;
|
|
Is there really a need for something like edit: I think my main issue is with the word |
|
this diagram is better actually: flowchart TD
G[Experimental GroundState] -- experiment --> A[ligand A];
G -- experiment --> B[ligand B];
H[MLE GroundState] -- MLE --> A;
H -- MLE --> B;
A -- RBFE --> B;
G -- derived --> H;
Z[True Ground] -- assumed 0 --> G;
@IAlibay |
introduce GroundState object instead all measurements are relative to a GroundState
allows path finding using nx while preserving the sign of measurements
optional, defaults to 298.15 K
* convert IC50 to DG * Change input from float to unit.Quantity, fix error calculation * Add test for from_experiment function * Add parametrize fixture * Add test for error messages * remove .idea files and new example ipynb * remove duplicate test file * Fix pep8 requirements * fix pep8 requirements * fix pep8 requirements - line length * fix typo unit name
easily add experimental/computational values
can't use pipes for OR, use Union
1586cc8 to
ea18979
Compare
introduce GroundState object
instead all measurements are relative to a GroundState
Description
Provide a brief description of the PR's purpose here.
Todos
Notable points that this PR has either accomplished or will accomplish.
Questions
Status