-
-
Notifications
You must be signed in to change notification settings - Fork 5
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]: Filtered vs unfiltered counts and two-tone coloring is gone? #396
Comments
@lcd2yyz the default value of the Line 24 in ee2477a
funny_module <- function(label = "Filter states", datanames = "all") {
checkmate::assert_string(label)
module(
label = label,
filters = datanames,
ui = function(id, ...) {
ns <- NS(id)
div(
h2("The following filter calls are generated:"),
verbatimTextOutput(ns("filter_states")),
verbatimTextOutput(ns("filter_calls")),
actionButton(ns("reset"), "reset_to_default")
)
},
server = function(input, output, session, data, filter_panel_api) {
checkmate::assert_class(data, "tdata")
observeEvent(input$reset, set_filter_state(filter_panel_api, default_filters))
output$filter_states <- renderText({
logger::log_trace("rendering text1")
filter_panel_api |>
get_filter_state() |>
format(trim = FALSE)
})
output$filter_calls <- renderText({
logger::log_trace("rendering text2")
attr(data, "code")()
})
}
)
}
options(teal.log_level = "TRACE", teal.show_js_log = TRUE)
# options("teal.bs_theme" = bslib::bs_theme(version = 5))
# options(shiny.trace = TRUE)
devtools::load_all("teal.slice")
devtools::load_all("teal")
library(scda)
library(SummarizedExperiment)
default_filters <- teal_slices(
teal_slice(dataname = "MAE", datalabel = "subjects", varname = "AGE"),
teal_slice(dataname = "MAE", datalabel = "hd1", arg = "select", varname = "low_depth_flag", selected = TRUE),
teal_slice(dataname = "MAE", datalabel = "hd1", arg = "select", varname = "tech_failure_flag"),
include_varnames = list(MAE = c("AGE", "ARM")),
count_type = "all"
)
MAE <- hermes::multi_assay_experiment
data <- teal.data::teal_data(teal.data::dataset("MAE", MAE))
app <- init(
data = data,
modules = list(funny_module(), funny_module("module2")),
filter = default_filters
)
runApp(app)
![]() P.S. Do you want |
Ah thanks for explaining. Once I updated to Does it just not work at all with MAE objects? Or does it work somewhat, just not reliably? Is this some special handling we can do, for example, this |
@lcd2yyz seems to not work with MAE at all. If I had more time I would investigate this further but it's not a few hours issue from what I've seen. Initially I set One solution to this problem is to implement this in |
Maybe we should label this Also can we add a vignette to introduce this new filter panel, with examples of all the various |
closing in favour of #596 |
What happened?
As title states, the hierarchical filter mechanism to show/visualize filtered vs unfiltered data is now missing from filter panel.
![image](https://private-user-images.githubusercontent.com/78242757/255046773-6de496a0-e0e1-4cfa-9493-0676065f9cb8.png?jwt=eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpc3MiOiJnaXRodWIuY29tIiwiYXVkIjoicmF3LmdpdGh1YnVzZXJjb250ZW50LmNvbSIsImtleSI6ImtleTUiLCJleHAiOjE3MjEyMDg0MzMsIm5iZiI6MTcyMTIwODEzMywicGF0aCI6Ii83ODI0Mjc1Ny8yNTUwNDY3NzMtNmRlNDk2YTAtZTBlMS00Y2ZhLTk0OTMtMDY3NjA2NWY5Y2I4LnBuZz9YLUFtei1BbGdvcml0aG09QVdTNC1ITUFDLVNIQTI1NiZYLUFtei1DcmVkZW50aWFsPUFLSUFWQ09EWUxTQTUzUFFLNFpBJTJGMjAyNDA3MTclMkZ1cy1lYXN0LTElMkZzMyUyRmF3czRfcmVxdWVzdCZYLUFtei1EYXRlPTIwMjQwNzE3VDA5MjIxM1omWC1BbXotRXhwaXJlcz0zMDAmWC1BbXotU2lnbmF0dXJlPTgxOWY4YzJlNGM2NTk5MGZhNWMxMWQzMTA1MDA2ZmY5NzZhNzNkZmFjY2ZlNGNlY2YzM2E4NDhkMWM0MWQyZmImWC1BbXotU2lnbmVkSGVhZGVycz1ob3N0JmFjdG9yX2lkPTAma2V5X2lkPTAmcmVwb19pZD0wIn0.mEGUJexyBk9JAV7SQeQc1Tz_UNUqR6Wub9EBZDlRtB8)
Tested with
main
branch on bothteal
andteal.slice
sessionInfo()
No response
Relevant log output
No response
Code of Conduct
Contribution Guidelines
Security Policy
The text was updated successfully, but these errors were encountered: