Here is how my initial data looks like and they are from mouse.
| Ge/treat | Control_1 | Control_2 | Cancer_1 | Cancer_2 | Cancer_3 |
|----------|:-------------:|----------:|----------:|---------:|---------:|
| gene1 | 2.65 | 3.01 | 2.20 | 3.65 | 4.01 |
| gene2 | 1.54 | 1.27 | 2.01 | 2.65 | 3.11 |
| gene3 | 1.34 | 1.00 | 2.50 | 1.65 | 2.01 |
After dunnet's test I have a table that looks like this (values are not correct of course)
| Ge/treat | Control_pvalues | Control_LFC | Cancer_pvalues | Cancer_LFC |
|----------|:-------------------:|------------:|------------------:|-----------:|
| gene1 | 2.65 | 3.01 | 2.20 | 3.65 |
| gene2 | 1.54 | 1.27 | 2.01 | 2.65 |
| gene3 | 1.34 | 1.00 | 2.50 | 1.65 |
P.S The link you provided for the pdf is broken.
Typically a GSEA requires a 'background' gene set of all those expressed in the tissue/cells, and a 'differential' gene set, i.e. those results from your analysis (although ANOVA/t-test for DE sounds sketchy, have you tried limma?). You can select a cut-off p-value and log fold change (typically 0.01, 2 are used respectively). There are plenty of packages for GSEA on bioconductor.
Hope that helps,
Bruce.
Thank you for your reply.
Why sounds sketchy? I run dunnet's test at anova step and then run an FDR correction in my p-values. I have also another list that p-values have been taken from a t-test , also with FDR adjustments. (I couldn't use limma for DE because i didn't have the CEL files)
Anyway.
Here's what is written in book:
By reading the phrase "examine the set of p-values {pi : i ∈ G} associated with a particular gene set GS to see whether they are, in general smaller in magnitude than the overall set of p-values " i understand that firstly i have to somehow create the gene set.
Let's say that I found only two gene sets in my listed genes, and each one plays a role in a different biological procedure. The next step is to statistically compare these two gene sets against the whole initial list and see determine if any of these two gene sets is enriched in the treatments.
Is this though right or not ? If it is, then how can someone create these first gene sets in R ? If I'm wrong please let me know and if it's easy, post here some additional resources that might help on this subject.
See this response from a leader in the field about t-test/ANOVA/limma issue. 7 years ago but still relevant.
What book is it that you have? I suggest using online resources, and looking on Bioconductor for an appropriate method that makes sense to you.
Thank you. Although I tried to use limma, couldn't make it work because i couldn't create proper expression set objects from my data for some reason.
GSEA does not need a background set, it just need all genes analyzed, and some statistic associated with each gene - typically, log(fold-change).
True, although I still think background sets should be used to limit the sets defining biological processes. If geneX is part of processY, but it isn't found expressed, shouldn't the method be aware of this?