selectGroupsUI: Group selection

Description Usage Arguments Value Note

View source: R/groups.R

Description

Group selection interface and logic

Usage

1
2
3
4
5
6
7
selectGroupsUI(id, label,
  placeholder = "Click on 'Groups' to create or edit groups",
  noGroupsLabel = NULL, groupsLabel = NULL, maxItems = NULL)

selectGroupsServer(session, id, type)

getSelectedGroups(input, id, type, filter = NULL)

Arguments

id

Character: identifier

label

Character: selectize label

placeholder

Character: selectize placeholder

noGroupsLabel

Character: label to show when no groups may be selected (if NULL, the option to show no groups will not be shown)

groupsLabel

Character: label to show to the option of using groups when no groups may be selected

maxItems

Numeric: maximum number of selected items

session

Shiny session

type

Character: type of groups (either "Patients", "Samples", "ASevents" or "Genes")

input

Shiny input

filter

Character: get groups only if they are present in this argument (if TCGA-styled gene symbols, they will be "converted" to gene symbols alone)

Value

selectGroupsUI: Interface for group selection

selectGroupsServer: Server logic for group selection

getSelectedGroups: List with selected groups (or NULL if no groups were selected)

Note

To allow the user to (explicitly) select no groups, pass the noGroupsLabel and groupsLabel arguments.


nuno-agostinho/psichomics documentation built on Nov. 1, 2017, 3:18 p.m.