Calculate mean ligand expression as a data frame for plotting in circos plot
Source:R/expression_functions.R
mean_ligand_expression.RdCreates a data frame of mean ligand expression for use in plotting a circos plot of ligand expression and saving tables of mean expression.
Arguments
- x
Gene by cell expression matrix
- ligands
Character vector of ligand genes to be quantified
- cell_ident
Vector of cell type (identity) names for which to calculate mean ligand gene expression
- cell_barcodes
Vector of cell barcodes (colnames of x) belonging to cell_ident to calculate mean expression across
- destination
Name of the receptor with which each ligand interacts
Examples
data(DominoObjects)
counts <- dom_counts(DominoObjects$built_dom_tiny)
mean_exp <- mean_ligand_expression(counts,
ligands = c("PTPRC", "FASLG"), cell_ident = "CD14_monocyte",
cell_barcodes = colnames(counts), destination = "FAS"
)
#> Warning: Ligand PTPRC not found in expression matrix; skipping
#> Warning: Ligand FASLG not found in expression matrix; skipping