Skip to content

Commit

Permalink
to counter new release of visOmopResults
Browse files Browse the repository at this point in the history
  • Loading branch information
xihang-chen committed Nov 25, 2024
1 parent 66d7b6c commit f8f1d6a
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 5 deletions.
2 changes: 1 addition & 1 deletion R/plotTemporalSymmetry.R
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,7 @@ plotTemporalSymmetry <- function(result,
scales = scales)

plot_data <- result |>
visOmopResults::splitNameLevel() |>
visOmopResults::splitGroup() |>
dplyr::select(.data$index_name, .data$marker_name, .data$variable_name, .data$variable_level, .data$estimate_name, .data$estimate_value, .data$additional_level, .data$additional_name) |>
dplyr::group_by(.data$estimate_name) |>
dplyr::mutate(row = dplyr::row_number()) |>
Expand Down
8 changes: 4 additions & 4 deletions R/summariseTemporalSymmetry.R
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@
#' name = "joined_cohorts",
#' indexTable = "cohort_1",
#' markerTable = "cohort_2")
#' temporal_symmetry <- summariseTemporalSymmetry(cohort = cdm$joined_cohorts)
#' temporal_symmetry <- summariseTemporalSymmetry(cohort = cdm$joined_cohorts, minCellCount = 0)
#' CDMConnector::cdmDisconnect(cdm)
#' }
#'
Expand All @@ -45,8 +45,8 @@ summariseTemporalSymmetry <- function(cohort,
cohort_settings <- omopgenerics::settings(cohort)|>
dplyr::mutate(timescale = .env$timescale) |>
dplyr::select(-c("index_id", "marker_id", "index_name", "marker_name"))
settings <- c("days_prior_observation", "washout_window", "index_marker_gap",
"combination_window", "timescale")
settings <- c("cohort_date_range", "days_prior_observation", "washout_window", "index_marker_gap",
"combination_window", "moving_average_restriction", "timescale")

output <- cohort %>%
dplyr::mutate(time = as.numeric(!!CDMConnector::datediff(
Expand Down Expand Up @@ -89,7 +89,7 @@ summariseTemporalSymmetry <- function(cohort,
dplyr::mutate(variable_name = "temporal_symmetry",
variable_level = as.character(.data$variable_level),
estimate_value = as.character(.data$estimate_value),
strata_name = "overall", #to change
strata_name = "overall",
strata_level = "overall",
additional_name = "overall",
additional_level = "overall",
Expand Down

0 comments on commit f8f1d6a

Please sign in to comment.