ShellyCoder / cellcall

inferring cell-cell communication from scRNA-seq of ligand-receptor
71 stars 20 forks source link

How to compare cell communication #37

Open tu12dou opened 1 year ago

tu12dou commented 1 year ago

HI! I have two groups, control group and drug group. I want to compare intercellular communication networks and internal regulatory signals between the two groups. Could you provide the related code. Thank you Best regards!

ShellyCoder commented 1 year ago

We apologize for not considering comparative analysis in the current version, which focuses only on scRNA-seq analysis in a single condition, for example, sperm development.

However, from a personal point of view, it is possible to get the communication scoring matrices from two different groups with the code below. Then referring the two matrices to each other, completing the dimensions so that the ranks are the same. With two matrices after processing, perform a non-parametric test, such as a rank sum test, for each L-R (each row).

case_df <- caseObj@data$expr_l_r_log2_scale control_df <- controlObj@data$expr_l_r_log2_scale

We believe a better version will be released, thank you for your valuable suggestions! Best wishes!