How to highlight DE genes in plotMD ?
2
0
Entering edit mode
6.6 years ago
Björn ▴ 110

How to highlight the DE genes with FDR =0.10 using plotMD as we usually see in volcanoplot? Example figures are given below ![volcanoplot][1] [1]: https://ibb.co/fEZejx ![maplot][1] [1]: https://ibb.co/mZ3dcH How to create volcanoplot in edgeR using coefficient of contrasts.

edgeR plotMD volcanoplot mirnaseq • 4.8k views
ADD COMMENT
0
Entering edit mode

Could you give use a reproducible example of your input dataset please ?

ADD REPLY
0
Entering edit mode

I found solution here http://www.sthda.com/english/wiki/ggplot2-texts-add-text-annotations-to-a-graph-in-r-software

Install ggplot2

install.packages("ggplot2")

Install ggrepel

install.packages("ggrepel")
ADD REPLY
0
Entering edit mode

plotMD doesn't use ggplot graphing system as backend. It uses plotwithhighlights as engine and probably supports values function to highlight genes of interest.

ADD REPLY
0
Entering edit mode
4.3 years ago
valizad2 ▴ 20

I don't understand how you used ggplot on plotMD. It doesn't seem to be compatible with it.

ADD COMMENT
0
Entering edit mode
3.6 years ago

Hi I managed to add DE tags to the plotMD using the code I published on Kaggle: Kaggle DE analysis

Here is an example of the code used:

fit <- glmQLFit(d, design)
qlftest<-glmQLFTest(fit, coef=i)
results <- as.data.frame(topTags(qlftest,n = Inf))
plotMD(qlftest,main="Mean-Difference Control vs T15")
text(results$logCPM,results$logFC,labels = rownames(results),col="black",cex=0.5,pos=3)

Here is the result:

plotMD

Also here is the original code which I took as reference (Author: Charleen D. Adams): Differential expression (ER-/ER+) for 125 breast cancers

ADD COMMENT

Login before adding your answer.

Traffic: 1880 users visited in the last hour
Help About
FAQ
Access RSS
API
Stats

Use of this site constitutes acceptance of our User Agreement and Privacy Policy.

Powered by the version 2.3.6