View source: R/pipeline_wrappers.R
get_abundance_info | R Documentation |
get_abundance_info
Visualize cell type abundances. Calculate relative abundances of cell types as well.
get_abundance_info( sce, sample_id, group_id, celltype_id, min_cells = 10, covariates = NA )
sce |
SingleCellExperiment object of the scRNAseq data of interest. |
sample_id |
Name of the meta data column that indicates from which sample/patient a cell comes from (in sce) |
group_id |
Name of the meta data column that indicates from which group/condition a cell comes from (in sce) |
celltype_id |
Name of the column in the meta data of sce that indicates the cell type of a cell. |
min_cells |
Indicates the minimal number of cells that a sample should have to be considered in the DE analysis. Default: 10. See 'muscat::pbDS'. |
covariates |
NA if no covariates should be corrected for. If there should be corrected for covariates, this argument should be the name(s) of the columns in the meta data that indicate the covariate(s). |
List containing cell type abundance plots and the underlying data frame that was used to make these plots.
## Not run: library(dplyr) sample_id = "tumor" group_id = "pEMT" celltype_id = "celltype" abundance_info = get_abundance_info(sce = sce, sample_id = sample_id, group_id = group_id, celltype_id = celltype_id, min_cells = 10) ## End(Not run)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.