Hi,
I have tried to do module-trait analysis using module_trait_cor function. However, the correlation values I get on heatmap show opposite results to what I see with differential gene expression analysis. For example, if a gene is upregulated from DEG analysis based on the factor that I am analysing based on, with BioNERO that gene is in a module which is negatively correlated with the trait and it is for all genes. Is it normal? How to fix the issue? My metadata looks okay.
Thanks.
Hi Fabricio, thanks for your quick help.
I have 2 factors, each with two levels and have already releveled them in DESeq2 like, so there is no issue with my DGE:
In my study I wanted to see the effect of each factor1 and factor2 and their interactions by DGE. For module_trait analysis, I have grouped these two factors to get four different traits and know the network of genes that are ruling in each condition.
1- male_control 2-female_control 3-male_treatment 4-female_treatment
Eventhough I have grouped the traits together, its coldata looks okay and the details matches the one I have prepared for DGE. I appreciate any further suggestions.
Hi,
I would try to obtain module-trait correlations using each variable separately, besides the combined variable (e.g., "male_control", etc). You don't need to relevel data for module-trait correlations, by the way.
But again, without looking at the whole data and what you did, it is impossible to suggest much further than that. Besides the fact that DGE and module-trait correlations are different things, the data processing for DGE in DESeq2 and coexpression network inference in BioNERO are quite different. For example, by default, the function
BioNERO::exp_preprocess()
removes principal components that add noise to the data (to remove spurious correlations) and quantile-normalizes the data. The different processing steps could also be a reason for the different results.Always keep in mind that DGE compares 2 variables (e.g., treatment vs control), while module-trait correlations compare a variable against everything else.