I am using clusterProfiler for differential gene expression using this code: https://yulab-smu.top/biomedical-knowledge-mining-book/enrichplot.html
I have a question about the third line of code:
de <- names(geneList)[abs(geneList) > 2]
Here all gene names are taken with absolute fold change >2. As an example, if in a hypothetical extreme case you have 100 downregulated genes (log2 fold change <-2) and zero upregulated genes (log2 fold change >2), then you may incorrectly think that identified pathways are activated, but they are actually repressed. How is this accounted for? Thank you.