# \donttest{
data(matrix_object)
data(lr_db)
# Analyzing ligand-receptor interactions: Perivascular -> Endothelial
result01s <- filter_lr_single(
rna = matrix_object,
sender = "Perivascular",
receiver = "Endothelial",
lr_database = lr_db,
sample_col = 2,
cell_type_col = 1,
id_sep = "--",
min_samples = 10,
min_sample_ratio = 0.1,
min_adjust_p = 0.05,
num_cores = 1,
verbose = TRUE
)
# Analyzing ligand-receptor projection scores: Perivascular -> Endothelial
result02s <- score_lr_single(
rna = matrix_object,
sender = "Perivascular",
receiver = "Endothelial",
filtered_lr = result01s,
sample_col = 2,
cell_type_col = 1,
id_sep = "--",
num_cores = 1,
verbose = TRUE
)
if (!is.null(result02s)) {
print(head(result02s))
}
# }
Run the code above in your browser using DataLab