Access saved groups of cell IDs defined while using the interactive output report
# S4 method for Vision
getSelections(object)
VISION object
Named list of selections. Each selection is a character vector of cell/pool IDs
This method allows you to retrieve saved selections later in R for downstream analyses
Note: In order for selections to correctly save when launching the report, the report must be run by storing the results back into the object.
E.g.
vis <- viewResults(vis)
and not
viewResults(vis)
if (FALSE) {
vis <- viewResults(vis) # Selections saved while viewing results
# Retrieve cell IDs for a selection group named 'interesting cells'
interestingCells <- getSelections(vis)[['interesting cells']]
}