Description Usage Arguments Details Value Author(s) Examples
Utility functions to be used in a .cacheCommonInfo
method, usually to identify names of elements of the SummarizedExperiment for later use in .defineInterface
to populate the user interface.
1 2 3 4 5 6 7 | .findAtomicFields(x)
.whichGroupable(x, max_levels = Inf)
.whichNumeric(x)
.isAssayNumeric(se, i)
|
x |
A data.frame or DataFrame, most typically the |
max_levels |
Integer scalar specifying the maximum number unique values for |
se |
The SummarizedExperiment object. |
i |
An integer scalar or string specifying the assay of interest in |
.findAtomicFields
is necessary as many of the widgets used by iSEE
(e.g., ggplot
, datatable
) do not know how to handle more complex types being stored as columns.
Similarly, .whichNumeric
and .whichGroupable
can be used to specify options for visualization modes that only make sense for continuous or discrete variables respectively (e.g., sizing, faceting).
For .findAtomicFields
, a character vector of names of columns in x
containing atomic R types.
For .whichNumeric
, an integer vector containing the indices of the numeric columns.
For .whichGroupable
, an integer vector containing the indices of the categorical columns.
For .isAssayNumeric
, a logical scalar indicating whether the specified assay as numeric.
Aaron Lun, Kevin Rue-Albrecht, Charlotte Soneson
1 2 3 4 5 6 7 8 9 10 11 12 | x <- DataFrame(
A = rnorm(10),
B = sample(letters, 10),
DataFrame = I(DataFrame(
C = rnorm(10),
D = sample(letters, 10)
))
)
.findAtomicFields(x)
.whichGroupable(x)
.whichNumeric(x)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.