Teichlab / cellphonedb

MIT License
337 stars 105 forks source link

How are the mean values calculated in the Means.txt output file from CellphoneDB #345

Closed julie-jch closed 2 years ago

julie-jch commented 2 years ago

I apologize if this question is trivial. I ran the cellphoneDB program on my data and it generated 4 output files. I'm looking at the mean and significant mean files and I'm trying to understand how the program calculates these values. Do you have a methods paper showing how the program generated these results after the meta and count files are inputted?

I don't seem to get the same values when I doing this process manually so I'm trying to really understand how the values are calculated in the output files and what they mean.

prete commented 2 years ago

Hi @julie-jch according to the docs the mean values for all the interacting partners (mean) value refers to the total mean of the individual partner average expression values in the corresponding interacting pairs of cell types. If one of the mean values is 0, then the total mean is set to 0. (Only in mean.txt)

You can also read more about that here:

Hope that helps.

julie-jch commented 2 years ago

Thank you very much. Much appreciated!