-
Notifications
You must be signed in to change notification settings - Fork 0
GDR-3366: replace hardcoded Duration values with NA_real_ #119
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
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -61,7 +61,9 @@ test_that("prism level6 data can be processed into gDR format ", { | |
| "subtype", "ReferenceDivisionTime")) | ||
| expect_true(all(gDRutils::get_env_identifiers(c("drug", "cellline"), | ||
| simplify = FALSE) %in% names(df_prism$result))) | ||
|
|
||
| expect_true(all(is.na(df_prism$result$Duration))) | ||
| expect_type(df_prism$result$Duration, "double") | ||
|
Comment on lines
+64
to
+65
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. The added tests correctly verify that |
||
|
|
||
| # testing format of clid, CellLineName and Tissue column | ||
| expect_equal(df_prism$result$clid, df_prism$result$CellLineName) | ||
| expect_equal( | ||
|
|
||
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.
While replacing the hardcoded value with
NA_real_is correct, removing the comment entirely makes the code less self-documenting. It would be beneficial to keep a comment explaining thatDurationis a required field in the gDR pipeline and is being initialized withNA_real_when missing from the source data to maintain semantic honesty.