View source: R/crosstalk_funs.R
compute_nst_scores | R Documentation |
This function computes the non-self talk scores for all the cell types contained in a SingleCellExperiment object. It iterates through the ligand-receptor pairs that are provided as input and calculates these entropy-based measurements for each cell type using its normalized expression matrix, which should contain log-transformed values.
compute_nst_scores(
sce,
ligand_receptor_df,
assay.type = "logcounts",
seed = 1004
)
sce |
A SingleCellExperiment object containing log-normalized expression values and cell type annotations as colLabels |
ligand_receptor_df |
A data frame with, at least, two columns named 'ligand' and 'receptor' containing the ligand-receptor pairs to evaluate |
assay.type |
The name of the data slot containing the log-normalized expression values in the SingleCellExperiment object |
seed |
random seed |
A data frame with the computed non-self-talk score for each ligand-receptor pair on each cell-type.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.