MAEFilteredDataset | R Documentation |
MAEFilteredDataset
R6
classMAEFilteredDataset
R6
class
MAEFilteredDataset
R6
class
teal.slice::FilteredDataset
-> MAEFilteredDataset
teal.slice::FilteredDataset$clear_filter_states()
teal.slice::FilteredDataset$format()
teal.slice::FilteredDataset$get_call()
teal.slice::FilteredDataset$get_dataname()
teal.slice::FilteredDataset$get_dataset()
teal.slice::FilteredDataset$get_dataset_label()
teal.slice::FilteredDataset$get_filter_count()
teal.slice::FilteredDataset$get_filter_state()
teal.slice::FilteredDataset$get_keys()
teal.slice::FilteredDataset$print()
teal.slice::FilteredDataset$srv_active()
teal.slice::FilteredDataset$srv_add()
teal.slice::FilteredDataset$ui_active()
new()
Initialize MAEFilteredDataset
object.
MAEFilteredDataset$new( dataset, dataname, keys = character(0), label = character(0) )
dataset
(MulitiAssayExperiment
)
single MulitiAssayExperiment
for which filters are rendered.
dataname
(character(1)
)
syntactically valid name given to the dataset.
keys
(character
) optional
vector of primary key column names.
label
(character(1)
)
label to describe the dataset.
Object of class MAEFilteredDataset
, invisibly.
set_filter_state()
Set filter state.
MAEFilteredDataset$set_filter_state(state)
state
(teal_slices
)
NULL
, invisibly.
remove_filter_state()
Remove one or more FilterState
of a MAEFilteredDataset
.
MAEFilteredDataset$remove_filter_state(state)
state
(teal_slices
)
specifying FilterState
objects to remove;
teal_slice
s may contain only dataname
and varname
, other elements are ignored.
NULL
, invisibly.
ui_add()
UI module to add filter variable for this dataset.
MAEFilteredDataset$ui_add(id)
id
(character(1)
)
shiny
module instance id.
shiny.tag
get_filter_overview()
Creates row for filter overview in the form of
dataname -- observations (remaining/total) -- subjects (remaining/total)
- MAE
MAEFilteredDataset$get_filter_overview()
A data.frame
.
clone()
The objects of this class are cloneable with this method.
MAEFilteredDataset$clone(deep = FALSE)
deep
Whether to make a deep clone.
# use non-exported function from teal.slice
MAEFilteredDataset <- getFromNamespace("MAEFilteredDataset", "teal.slice")
data(miniACC, package = "MultiAssayExperiment")
dataset <- MAEFilteredDataset$new(miniACC, "MAE")
fs <- teal_slices(
teal_slice(
dataname = "MAE", varname = "years_to_birth", selected = c(30, 50), keep_na = TRUE
),
teal_slice(
dataname = "MAE", varname = "vital_status", selected = "1", keep_na = FALSE
),
teal_slice(
dataname = "MAE", varname = "gender", selected = "female", keep_na = TRUE
),
teal_slice(
dataname = "MAE", varname = "ARRAY_TYPE", selected = "", keep_na = TRUE
)
)
dataset$set_filter_state(state = fs)
library(shiny)
isolate(dataset$get_filter_state())
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.