-
Notifications
You must be signed in to change notification settings - Fork 0
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
Enhancement/display pp adpp #141
base: main
Are you sure you want to change the base?
Conversation
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.
Looks good, a couple things I have noticed:
- In ADPP, the parameter is not specified. The PARAM column contains the analyte, which is also in another column.
- Spelling error- should be 'Unspecified' not 'Unespecified'
Another suggestion but not required is maybe moving this tab to the NCA section? As outputs will become visualisation section and I think this tab is more relevant in the NCA section. But can be reviewed later.
Good catch @js3110 , issues should be fine now, thanks! And regarding the rearrangement, I agree with you that this makes a lot of sense in NCA results. Once our main issues are addresed we will rearrange all output tabs. |
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.
@Gero1999 looks much better nice work !
Approved, but one optional thing that I think would look nicer is instead of having two separate buttons for csv and excel, you just have one download button and the user can choose between .csv and excel as the file type.
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.
Looks fine in general, I have a suggestion regarding pattern usage and readability.
R/export_cdisc.R
Outdated
# Elude potential collapse cases with PC variables | ||
.[!names(.) %in% c("AVAL", "AVALC", "AVALU")] %>% |
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.
issue: Try not mixing base R and dplyr patters, as the code becomes harder to comprehend. I would also clean up older code and do:
adpp <- pp_info %>%
# Elude potential collapse cases with PC variables
select(-any_of(c("AVAL", "AVALC", "AVALU"))) %>%
rename(AVAL = PPSTRESN, AVALC = PPSTRESC, AVALU = PPSTRESU) %>%
left_join(
res_nca$data$dose$data %>%
select(-any_of(setdiff(names(pp_info), "USUBJID"))),
by = "USUBJID"
) %>%
select(any_of(adpp_col))
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, I completely agree. I sometimes miss these things, I promise to pay more attention to this from now on!
Co-authored-by: Mateusz Kołomański <[email protected]>
…maverse/aNCA into enhancement/display-pp_adpp
Issue
Closes #66
Description
Renaming the tab from "CDISC" to "PP/ADPP"
Showing an in-app-display of the datasets in the tab
Renaming the download button from "Export CDISC" to "Download PP/ADPP" (I ended up with
Parameter datasets
)Definition of Done and how to test
How to test
NCA > Choose the analyte > Submit > Settings > Choose the Dose Number > Run NCA > See Outputs > Parameter datasets
Contributor checklist
Notes to reviewer
Anything that the reviewer should know before tacking the pull request?