FilteredDataset
is a class which renders/controls FilterStates
(s)
Each FilteredDataset
contains filter_states
field - a list
which contains one
(data.frame
) or multiple (MultiAssayExperiment
) FilterStates
objects.
Each FilterStates
is responsible for one filter/subset expression applied for specific
components of the dataset.
Methods
Method new()
Initializes this FilteredDataset
object.
Usage
FilteredDataset$new(
dataset,
dataname,
keys = character(0),
label = attr(dataset, "label", exact = TRUE)
)
Method format()
Returns a formatted string representing this FilteredDataset
object.
Method print()
Prints this FilteredDataset
object.
Method clear_filter_states()
Removes all filter items applied to this dataset.
Method get_call()
Gets a filter expression.
This function returns filter calls equivalent to selected items
within each of filter_states
. Configuration of the calls is constant and
depends on filter_states
type and order which are set during initialization.
Method get_filter_state()
Gets states of all contained FilterState
objects.
Method set_filter_state()
Set filter state.
Method ui_active()
shiny
module containing active filters for a dataset, along with a title and a remove button.
Method srv_add()
Server module to add filter variable for this dataset.
For this class srv_add
calls multiple modules
of the same name from FilterStates
as MAEFilteredDataset
contains one FilterStates
object for colData
and one for each experiment.
Method finalize()
Object and dependencies cleanup.
Destroy inputs and observers stored in
private$session_bindings
Finalize
FilterStates
stored inprivate$filter_states