Hello guys,
I got a strange MA plot like this.
The code I used was simply like the manual:
plotMA(res)
Does anyone know the reason and how to fix it?
Thank you in advance!
Hello guys,
I got a strange MA plot like this.
The code I used was simply like the manual:
plotMA(res)
Does anyone know the reason and how to fix it?
Thank you in advance!
For those people encounter the same problem like me.
Type plotMA
in R and check the working environment. For example, I got
> plotMA
function (object, ...)
UseMethod("plotMA")
<environment: namespace:limma>
It means the plotMA()
I used isn’t DESeq2’s plotMA function. In this situation, use DESeq2::plotMA()
instead of plotMA()
to make MA plot.
It looks like your model lacked an intercept and you didn't specify a contrast. You'll need to show the full set of commands (specifically, how you made your original DESeqDataset and the contents of any sample sheet involved). Also, you'll need to post the output of sessionInfo()
.
Thanks for replying!
I generated the DESeqDataset by combining countData and colData by DESeqDataSetFromMatrix( )
Here's the entire code I used:
> dat = read.csv(file = "/User/Desktop/gene_count_matrix.csv", header = T, row.names=1)
> colData = read.table(file = "/User/Desktop/colData.txt", header = T, row.names=NULL)
> n_count <- rowSums(dat)
> data <- dat[n_count > 0, ]
> rownames(colData) <- colnames(data)
> data_deseq_1<- DESeqDataSetFromMatrix(countData =
data, colData = colData,
design = ~ Genotype + Trt + Time)
> lncap_de <- DESeq(data_deseq_1)
> lncap_de_out <- results(lncap_de)
> res <- results(lncap_de, alpha = 0.05)
Here's how input .csv and .txt data looks like:
I don't understand why even the MA plot of demo data also looks strange.
At this point I haven't a clue what's going on. I suspect there's simply something installed incorrectly on your system. I suggest you post this on the bioconductor site and wait for Mike Love (the DESeq2 author) to reply. Perhaps he has more insight as to where the problem might be.
Use of this site constitutes acceptance of our User Agreement and Privacy Policy.
It looks like it's plotting virtually the same thing against itself. The log ratios should neither be that high, and one would expect both positive and negative log ratios.
How did you produce res (go through all of the DESeq2 commands)?
Here's the code I used:
And, I checked the result by:
It looks like (log2FoldChange seems normal):
I tried demo data from DESeq and got the same strange MA plot as well.
I repeated your commands for the demo data and my MA plot looked normal.
You may want to respond to Devon's comment, and provide your session's info via
sessionInfo()
.I run R version 3.2.5 (2016-04-14) on Platform: x86_64-pc-linux-gnu (64-bit), under Ubuntu 14.04.5 LTS, with DESeq2_1.10.1
Thanks for replying!
Here's the session's info: R version 3.4.0 (2017-04-21) Platform: x86_64-apple-darwin15.6.0 (64-bit) Running under: macOS Sierra 10.12.6, with DESeq2_1.16.1