Hello , When I prepare my gene_list for gseGo() I tried Log2foldChange or t statistic ,separately , to order the list. However, I got different results for each. Which one do you recommend?
I used this code after deseq2 to get the differentially expressed gene list:
res <- results(dds, contrast=c("group", "KO", "wt")).
Afterwards, I just created the list of genes using either "Lof2foldChange" or "t statistic" and the gene names as the row names.
Thanks for your help in advance.
Definitely, you should not use logFC to rank the genes for gene set enrichment analysis. So the answer is 't-statistics' (or "Wald-statistics" in DESeq2 output ). If you want to use logFC consider this line of code to convert logFC to a metric that can take into account both statistical significance and effect size:
Thanks very much Hamid for your reply. It was a big help.