Skip to content
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

[FEAT]: Sensitivity analysis in "Simulate" operator should support other "slice" options besides a specific timepoint #6600

Open
liunelson opened this issue Feb 18, 2025 · 0 comments
Assignees
Labels
feature New feature or request

Comments

@liunelson
Copy link
Member

liunelson commented Feb 18, 2025

Is your feature request related to a problem? Please describe.

Currently, we can only select a time point of interest to do a sensitivity analysis.
Image

However, the Eval contained questions that required analysis of not a fixed timepoint for all samples, but the peak timepoint of each sample (i.e. max per sample). A nice-to-have would be to include a "argmax per sample" option too.

Describe the solution you'd like

Akin to the natural-language interface in "Optimize", the timepoint selection could be:

Consider how sensitive the [select "peak value | peak timepoint | value at timepoint"] [if "value at timepoint", show numeric text field for timepoint] of the outcome(s) of interest [multiselect with filter "state variable or observable"] is to the model parameters [multiselect with filter "model parameters"].

Pseudocode

If value at timepoint (currently):

# outcome = pandas.DataFrame(
#     {
#         "sample_id": [0, 0, 1, 1, 2, 2], 
#         "timepoint_value": [0.0, 1.0, 0.0, 1.0, 0.0, 1.0],
#         "value": [...]
#     }
# )
target = outcome[outcome["timepoint_value" == timepoint_of_interest]]["value"]

If peak value:

target = outcome[["timepoint_value", "value"]].groupby("timepoint_value").max()

If peak timepoint:

target = outcome[outcome.groupby("timepoint_value").idxmax()]["value"]
@liunelson liunelson added the feature New feature or request label Feb 18, 2025
@liunelson liunelson changed the title [FEAT]: Sensitivity analysis in "Simulate" operator should support [FEAT]: Sensitivity analysis in "Simulate" operator should support other "slice" options besides a specific timepoint Feb 18, 2025
@blanchco blanchco self-assigned this Feb 19, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
feature New feature or request
Projects
None yet
Development

No branches or pull requests

2 participants