FilterStates R6 class
FilteredDataset.RdFilteredDataset 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"),
metadata = NULL
)Arguments
dataset(
data.frameorMultiAssayExperiment)
single dataset for which filters are rendereddataname(
character(1))
A given name for the dataset it may not contain spaceskeysoptional, (
character)
Vector with primary keyslabel(
character(1))
Label to describe the datasetmetadata(named
listorNULL)
Field containing metadata about the dataset. Each element of the list should be atomic and length one.
Method format()
Returns a formatted string representing this FilteredDataset object.
Method print()
Prints this FilteredDataset object.
Method clear_filter_states()
Removes all active filter items applied to this dataset
Method get_call()
Gets a filter expression
This functions 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 active FilterState objects
Method set_filter_state()
Set filter state
Method get_filter_count()
Gets the number of active FilterState objects in all FilterStates in this FilteredDataset.
Method get_filter_overview()
Get filter overview rows of a dataset
The output shows the comparison between filtered_dataset
function parameter and the dataset inside self
Method ui_active()
UI module for dataset active filters
UI module containing dataset active filters along with title and remove button.
Method srv_active()
Server module for a dataset active filters
Server module managing a active filters.
Method ui_add()
UI module to add filter variable for this dataset
UI module to add filter variable for this dataset
Method srv_add()
Server module to add filter variable for this dataset
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.