View source: R/expression_processing.R
get_muscat_exprs_frac | R Documentation |
get_muscat_exprs_frac
Calculate sample- and group-average of fraction of cells in a cell type expressing a gene.
get_muscat_exprs_frac(sce, sample_id, celltype_id, group_id)
sce |
SingleCellExperiment object of the scRNAseq data of interest. Contains both sender and receiver cell types. |
sample_id |
Name of the meta data column that indicates from which sample/patient a cell comes from |
celltype_id |
Name of the column in the meta data of sce that indicates the cell type of a cell. |
group_id |
Name of the meta data column that indicates from which group/condition a cell comes from |
List with two dataframes: one with fraction of cells in a cell type expressing a gene, averaged per sample; and one averaged per group.
## Not run:
library(dplyr)
sample_id = "tumor"
group_id = "pEMT"
celltype_id = "celltype"
muscat_exprs_frac = get_muscat_exprs_frac(sce = sce, sample_id = sample_id, celltype_id = celltype_id, group_id = group_id)
## End(Not run)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.