Thank you Barry.
With the above code I got 146 genes for up-regulated, and 190 genes for down-regulated. I am concerned because they are less than expected.
Then I also tried these codes from a training website- DESeq2 workshop
padj.cutoff <- 0.05. lfc.cutoff <- 1
res <- res %>% data.frame() %>% rownames_to_column(var="gene") %>% as_tibble()
sig <- res %>% data.frame() %>% rownames_to_column(var="gene") %>% filter(padj < padj.cutoff & abs(log2FoldChange) > lfc.cutoff)
With the above code, I got 590 genes for up and down-regulated genes.
What is wrong here? Which one should I take? why?
Thanks.