Description
Hello, I am currently using SCPA on data from samples with Sars-CoV2, and there has been a few times other people have asked about the fold change output, but I feel like I still have to ask about what is happening. I reread the function description and even took a look at the code to see if there was something I missed. In a few of our good responders and non responder populations for SCPA (responder being sample1), I ran compare pathways only to see that all inflammatory responses had a negative fold change with about 5 or 6 qval. That doesn't mean they are very enriched, but I am working with a relatively small sample size for now.
This was odd, though, so I investigated the FC calculation in the code. It seemed like it would compare the average expression of genes for the pathway in population 1 and subtract the average expression for population 2. So then, negative values would show that the pathway was upregulated in population 2. But in the code, it shows that the calculation is log FC, so would that imply that if the average expression for any gene in that pathway was less than 1, it would return a negative value for the log fold change and the average would also then be negative. Of course, it depends on what the other population is and I am not trying to imply that it is always incorrect, but I am wondering if, for extremely low gene expression, if this could be a factor that has already been considered, or if it's impossible for this case to appear.
In the output of compare_pathways, it also seems like it is labelled as FC, not log2FC, so I am unsure which the "FC" refers to in the output.
I know we should specifically look at the qval and adjPval, but I also need to know up and down regulated pathways, and it would be odd if some inflammatory immune responses were more enriched in samples that had poor responses to covid.