calculate_diff | R Documentation |
This function performs differential analysis on datasets as imported by load_multiple_samples. Returns a list of three data frames: [1] percentage abundances of each cell (sub)type in each sample, [2] log2 fold changes of each cell (sub)type between two conditions and [3] p-values for the fold changes
calculate_diff(
multi.data = NULL,
column = "Cell.Type",
remove.unclass = FALSE,
transform = "default"
)
multi.data |
(Required) A data frame of clustering results. Expects results from load_multi_samples |
column |
Choose between plotting Cell.Type or Cell.Subtype (Default: Cell.Type) |
remove.unclass |
Option to remove unclassified cells from plot (Default: FALSE) |
transform |
Transformation method used for original analysis. 'default' assumes arcsinh transformation. 'none' indicates no transformation (Default: default) |
diff.results <- calculate_diff(multi.data)
diff.results <- calculate_diff(multi.data, transform = 'default', column = 'Cell.Subtype')
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.