I would like to know how to extract a dataframe containing the most Differentially Expressed Genes of my dataset but also the values for each sample, so I can use those for further analysis and visualisation plots.
After running this, I understand I see the genes with padj, Logfold basemean ETC
dds <- DESeq(dds)
res <- results(dds)
res
However, the output desired somwthing like this :
df
Genes padj Sample1 Sample2 Sample3 ...
Gene 1 0.0001 23423 42423 234234
Gene 2 0.001 23 234 4234
Gene 3 0.01 2342 575 56756
...
Or just knowing how to extract the list of top DEG and their values across samples?
Thanks