get_default_slice_id: Default 'teal_slice' id

View source: R/teal_slice.R

get_default_slice_idR Documentation

Default teal_slice id

Description

Create a slice id if none provided.

Usage

get_default_slice_id(x)

Arguments

x

(teal_slice or list)

Details

Function returns a default id for a teal_slice object which needs to be distinct from other teal_slice objects created for any FilterStates object. Returned id can be treated as a location of a vector on which FilterState is built:

  • for a data.frame id concatenates dataname and varname.

  • for a MultiAssayExperiment id concatenates dataname, varname, experiment and arg, so that one can add teal_slice for a varname which exists in multiple SummarizedExperiments or exists in both colData and rowData of given experiment. For such a vector teal.slice doesn't allow to activate more than one filters. In case of teal_slice_expr id is mandatory and must be unique.

Value

(character(1)) id for a teal_slice object.


teal.slice documentation built on May 29, 2024, 1:39 a.m.