View source: R/expression_processing.R
process_info_to_ic | R Documentation |
process_info_to_ic
Process cell type expression information into intercellular communication focused information. Only keep information of ligands for the sender cell type setting, and information of receptors for the receiver cell type.
process_info_to_ic(info_object, ic_type = "sender", lr_network)
info_object |
Output of 'get_avg_frac_exprs_abund' |
ic_type |
"sender" or "receiver": indicates whether we should keep ligands or receptors respectively. |
lr_network |
Prior knowledge Ligand-Receptor network (columns: ligand, receptor) |
List with expression information of ligands (sender case) or receptors (receiver case) - similar to output of 'get_avg_frac_exprs_abund'.
## Not run:
library(dplyr)
lr_network = readRDS(url("https://zenodo.org/record/3260758/files/lr_network.rds"))
lr_network = lr_network %>% dplyr::rename(ligand = from, receptor = to) %>% dplyr::distinct(ligand, receptor)
sample_id = "tumor"
group_id = "pEMT"
celltype_id = "celltype"
celltype_info = get_avg_frac_exprs_abund(sce = sce, sample_id = sample_id, celltype_id = celltype_id, group_id = group_id)
receiver_info_ic = process_info_to_ic(info_object = celltype_info, ic_type = "receiver", lr_network = lr_network)
sender_info_ic = process_info_to_ic(info_object = celltype_info, ic_type = "sender", lr_network = lr_network)
## End(Not run)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.