Dear all,
Let me ask you all a question.
If I want to create a volcano plot after using the treat function, What kind of parameters should I use? Of note, in this case, all genes do not rank using Log2fold change. Should I use xlab="treat.lfc" and ylab=" ? " . Could anyone please help me?
Thanks in advance.
`> names(tfit)
"coefficients" "rank" "assign" "qr" "df.residual"
"sigma" "stdev.unscaled" "design" "correlation" "genes"
"Amean" "cov.coefficients" "contrasts" "df.prior" "s2.prior"
"s2.post" "df.total" "t" "p.value" "treat.lfc" `
>volcanoplot(tfit,coef=1)
>plot(tfit[,6],-log(tfit[,10],10),coef=1, xlab="log2(Fold-Change)", ylab="-log10(P.Value)",main="Volcano plot",cex=0.1,pch=19)
>abline(v=c(-1,1),col="blue")
>abline(h=-log(0.05,10),col="red")
Thanks in advance.
Dear Gordon,
Thanks for your reply.
I asked it because I got the following error message after run Volcano plot(). I used the above script. I do not know the reason for it. Thanks again. And I ran the eBayes.
volcanoplot(tfit,coef=1)
Error in volcanoplot(tfit, coef = 1) :
No B-statistics found, perhaps eBayes() not yet run
OK, I see. I wish you'd mentioned this in your original question. Anyway you are right, volcanoplot() is not currently working with treat().
I wanted to use this code to access treat.lfc and p.value column. Thus, I need to change the old code to
tfit[,20]
ortfit[,19] to access it. But it s not working.