Hello! I am trying to figure out how I can make an MA plot from the following my data frame dar
I am currently using DESeq2 but I extracted the information from data frame dr which is the results (dds) I saved this as a csv.
Opened another R session and loaded dr where I can have the column with gene name. I changed the header of that column to "gene" then merged dr by "gene" it to my list of genes of interest to make my data frame dim.
So dim at the moment isnt seen as a DESeq2 object data frame.
dim(dar)
[1] 13348 6
head(dar)
baseMean log2FoldChange lfcSE stat
A1BG 7.278775e-02 0.140265235 1.6670434 0.084140124
A1CF 4.130988e-02 -1.102589688 1.6676373 -0.661168755
AAAS 1.657182e+01 1.173655704 0.5986687 1.960442661
AACS 6.373922e+00 -0.653331952 0.8046976 -0.811897466
AADAC 3.251195e+00 0.736454731 0.7014096 1.049963935
pvalue padj
A1BG 9.329450e-01 NA
A1CF 5.085041e-01 NA
AAAS 4.994407e-02 1.377416e-01
AACS 4.168505e-01 6.001605e-01
AADAC 2.937347e-01 4.793114e-01
I want to make an MA plot with the plotMA function where x axis is mean expression("baseMean") and y axis is log2FoldChange
plotMA(Merged_H3K27me3_not_inforMAplot_nocols, ylim=c(-5,5))
How can I get this data frame back into DESeq2 format? and make my MA plot?
plotma
r