Skip to content

Commit

Permalink
Merge pull request #130 from gdrplatform/GDR-2676
Browse files Browse the repository at this point in the history
Gdr 2676
  • Loading branch information
bczech authored Sep 3, 2024
2 parents a179666 + 89b0469 commit 23a1244
Show file tree
Hide file tree
Showing 4 changed files with 12 additions and 3 deletions.
4 changes: 2 additions & 2 deletions DESCRIPTION
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
Package: gDRutils
Type: Package
Title: A package with helper functions for processing drug response data
Version: 1.3.10
Date: 2024-08-28
Version: 1.3.11
Date: 2024-08-30
Authors@R: c(person("Bartosz", "Czech", role=c("aut"),
comment = c(ORCID = "0000-0002-9908-3007")),
person("Arkadiusz", "Gladki", role=c("cre", "aut"), email="[email protected]",
Expand Down
3 changes: 3 additions & 0 deletions NEWS.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,6 @@
## gDRutils 1.3.11 - 2024-08-30
* remove GDS fit_source from gDRviz

## gDRutils 1.3.10 - 2024-08-28
* extend the logic of `get_additional_variables` to support other sources of fitting metrics

Expand Down
5 changes: 5 additions & 0 deletions R/flatten.R
Original file line number Diff line number Diff line change
Expand Up @@ -40,6 +40,11 @@ flatten <- function(tbl, groups, wide_cols, sep = "_") {
checkmate::assert_character(wide_cols)
checkmate::assert_string(sep)
checkmate::assert_class(tbl, "data.table")

if ("fit_source" %in% names(tbl)) {
tbl <- tbl[fit_source == "gDR", ]
groups <- setdiff(groups, "fit_source")
}

if (!all(groups %in% colnames(tbl))) {
stop(sprintf("missing expected uniquifying groups: '%s'",
Expand Down
3 changes: 2 additions & 1 deletion R/packages.R
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,8 @@ if (getRversion() >= "2.15.1") {
"concs",
"type",
"name",
"count"
"count",
"fit_source"
),
utils::packageName())
}

0 comments on commit 23a1244

Please sign in to comment.