Given a dataset and a list of stimulation groups, the function pairs each stimulation group with control stimulations and defines a new cell_type variable which is the interaction of the previous cell type with stimulation group.
1 | stimulationModel(data, cell_type, stim_var, controls, stim_groups)
|
data |
the data set to be transformed. |
cell_type |
a factor vector identifying which cell type each row in the data refers to. |
stim_var |
a vector identifying the which stimulation each row in the data refers to. |
controls |
a vector identifying which of the stimulations are controls. |
stim_groups |
a list detailing which stimulations are to be grouped together. |
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.