YuLab-SMU / biomedical-knowledge-mining-book

:books: Biomedical knowledge mining using GOSemSim and clusterProfiler
https://yulab-smu.top/biomedical-knowledge-mining-book/
69 stars 27 forks source link

chapter 14: CompareCluster question #29

Open alima-is opened 5 months ago

alima-is commented 5 months ago

Hi! thanks for writing such a helpful book!

I had a question about the code on compare cluster in chapter 14 especially 14.2 I have 2 dataframes with the following columns: ID, description, gene ratio, background ratio, p.value, p.adj and gene count. Each df are for different cell conditions A and B. I'm not sure how to combine the two dataframes efficiently to then create an object that I can run CompareCluster on.

I'm also unsure if I were to combine the dataframes somehow, which p.values/p.adj values I would use as there would be two sets from each dataframe. Your object in chapter 14.2 called formula_res has only one set of pvalues etc., but I'm not sure what these statistical values show?

I would appreciate any advice! Thank you! Leima