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

Bug multiple analyte metabolite #193

Merged

Conversation

Gero1999
Copy link
Collaborator

@Gero1999 Gero1999 commented Feb 5, 2025

Issue

Closes #192

Description

There is a function that needs some adjustment (format_pkncadata_intervals) that accepts other more general input than PKNCAdose so we can easily cover the multiple analyte with metabolite case. Currently when the same drug is used for different analytes results will only be displayed for one of the analytes.

Definition of Done

  • Loading DummyRO_with_metab.csv and running NCA with both analytes provides clear results with both analytes

How to test

Load DummyRO_with_metab.csv > Select both analytes > Choose whatever settings you prefer > Run NCA > Check if in results both analytes appear

Contributor checklist

  • Code passes lintr checks
  • Code passes all unit tests
  • New logic covered by unit tests
  • New logic is documented
  • Package version is incremented

@Gero1999 Gero1999 linked an issue Feb 5, 2025 that may be closed by this pull request
@Gero1999 Gero1999 marked this pull request as ready for review February 5, 2025 09:53
@Gero1999 Gero1999 changed the base branch from main to bug/slope-selector-incorrect February 5, 2025 10:24
@Gero1999 Gero1999 requested a review from js3110 February 5, 2025 10:29
sub_pknca_dose <- pknca_dose$data %>%
select(any_of(c(unname(unlist(pknca_dose$columns$groups)),
pknca_dose$columns$time, "DOSNO"))) %>%
rename_with(~ "time_dose", pknca_dose$columns$time)
Copy link
Collaborator

Choose a reason for hiding this comment

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

Looks good to me, thanks! Small nitpick: could you add some comments to this section to make it easier to undesrtand the workflow :)

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

nice I will add the comments and rebase your branch!

@Gero1999 Gero1999 merged commit 766bd6a into bug/slope-selector-incorrect Feb 5, 2025
1 check was pending
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.

Bug: Multiple analyte for metabolite case won't work
2 participants