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

High dose hook #182

Merged
merged 4 commits into from
Oct 17, 2024
Merged

High dose hook #182

merged 4 commits into from
Oct 17, 2024

Conversation

ZetrextJG
Copy link
Collaborator

Implement high dose hook phenomenon handling as described in #179

Copy link

codecov bot commented Oct 17, 2024

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 87.50%. Comparing base (1e1395b) to head (7b1543b).
Report is 7 commits behind head on dev.

Additional details and impacted files
@@            Coverage Diff             @@
##              dev     #182      +/-   ##
==========================================
+ Coverage   87.16%   87.50%   +0.33%     
==========================================
  Files          14       14              
  Lines        1581     1648      +67     
==========================================
+ Hits         1378     1442      +64     
- Misses        203      206       +3     

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

#'
is.decreasing <- function(x) {
stopifnot(is.numeric(x) || is.null(x))
if (any(is.na(x))) {
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

if this function is gonna be used only in handle_high_dose_hook then as a user I would prefer to see different error message. I know that this check fits here but I would move it to handle_high_dose_hook and there gave it different, more specific error message such as "NA values detected in the dilutions while handling high dose hook" or something similar

Copy link
Collaborator

@Fersoil Fersoil Oct 17, 2024

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I guess such a situation should not happen. In general, I think, it would mean that a standard curve sample has a missing dilution value

Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

But I'd love to see a test in which we process a plate with high-hook

Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

When it comes to the function is.decreasing the na handling is there because this function is located in the helpers.R and provided as a utility function to be used across the package.

I will add a doc with an explanation about it to the handle_high_dose_hook and create a test specific for phenomenon

Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I suggest to approve these changes. In general, if there were a problem with NA dilutions, it would also affect different parts of model creation. There are no specific exceptions thrown that could help track if there is standard curve sample without dilution.

I think, if @nizwant agrees we can approve these changes and optionally add this problem as a new issue, but I don't think that this is necessary.

Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I tried to manipulate the plate object so that the standard curve sample would not have the dilution value, and it turns out that then it is read as a test sample instead. I am not sure how to enforce the behaviour that @nizwant wants to avoid other than through manual modification of plate object data.

Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

then it's fine

@nizwant nizwant merged commit c3b7726 into dev Oct 17, 2024
9 checks passed
@nizwant nizwant deleted the high-dose-hook branch October 17, 2024 19:35
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants