R/cyto_spillover_edit.R
cyto_spillover_edit.Rdcyto_spillover_edit provides an interactive shiny interface for
editing fluorescent spillover matrices.
# S3 method for GatingSet cyto_spillover_edit( x, parent = NULL, channel_match = NULL, spillover = NULL, axes_trans = NA, axes_limits = "machine", display = 2000, point_size = 3, axes_text_size = 1.7, axes_label_text_size = 2, title_text_size = 2, header_text_size = 1.5, viewer = FALSE, ... ) # S3 method for flowSet cyto_spillover_edit( x, channel_match = NULL, spillover = NULL, axes_trans = NA, axes_limits = "machine", display = 2000, point_size = 3, axes_text_size = 1.7, axes_label_text_size = 2, title_text_size = 2, header_text_size = 1.5, viewer = FALSE, ... )
| x | an object of class |
|---|---|
| parent | name of the parent population to plot when a |
| channel_match | name of csv file matching the name of each sample to a
fluorescent channel. The |
| spillover | name of a square spillover matrix csv file or spillover
matrix to edit. Setting |
| axes_trans | an object of class |
| axes_limits | options include |
| display | numeric passed to |
| point_size | integer passed to |
| axes_text_size | numeric pasedd to |
| axes_label_text_size | numeric passed to |
| title_text_size | numeric passed to |
| header_text_size | numeric passed to |
| viewer | logical indicating whether the spillover matrix editor should be launched in the RStudio viewer pane, set to FALSE by default. |
| ... | additional arguments passed to |
edited spillover matrix and save to designated spillover csv
file. Saved filename defaults to date-Spillover-Matrix.csv is not
specified.
cyto_spillover_edit takes on either a
flowSet or
GatingSet containing
compensation controls and/or samples. It is recommended that samples be
pre-gated based on FSC and SSC parameters to obtain a homogeneous population
for calculation of fluorescent spillover. The compensation controls should
also be transformed prior to using cyto_spillover_edit.
Users begin by selecting the unstained control and a stained control from
dropdown menus of sample names. cyto_spillover_edit leverages
cyto_plot to plot the stained sample and overlay the unstained control
in black. Users should then select the channel associated with the selected
control on the x axis and go through all other channels on the y
axis.
The displayed spillover matrix is extracted directly from the
flowSet or
GatingSet unless another
spillover matrix is supplied through the spillover argument. To edit the
spillover matrix simply modify the appropriate cell in the the table. The new
spillover matrix will be re-applied to the samples with each edit and
automatically re-plotted so you can track changes in real-time.
To aid in selection of an appropriate spillover value, the median fluorescent
intensity of the unstained control is indicated by a red line and median
fluorescent intensity of the stained control is tracked with a purple line.
These features can be turned off by de-selecting the check boxes. Changes to
the spillover matrix are automatically saved to a csv file called
"date-Spillover-Matrix.csv" in the case where the spillover is
not specified or to the same name as the specified spillover.
Dillon Hammill, Dillon.Hammill@anu.edu.au