Mercurial > repos > yufei-luo > s_mart
annotate SMART/DiffExpAnal/DESeqTools/MAplotDE.R @ 18:94ab73e8a190
Uploaded
author | m-zytnicki |
---|---|
date | Mon, 29 Apr 2013 03:20:15 -0400 |
parents | |
children |
rev | line source |
---|---|
18 | 1 # MAplotDE |
2 # MAplot of DE genes | |
3 | |
4 # input : res, alpha,OUT_MAplotDEName | |
5 # output : MAplot (png) | |
6 | |
7 MAplotDE <- function( res, alpha, OUT_MAplotDEName, out = TRUE ){ | |
8 | |
9 if (out) png( file=OUT_MAplotDEName ) | |
10 | |
11 plot( res$baseMean, res$log2FoldChange, pch=".", xlab="Mean expression", ylab="log2FC", main="", | |
12 log="x", col=ifelse(res$padj < alpha, "red", "black") ) | |
13 abline(h=0, col="red") | |
14 | |
15 if (out) dev.off() | |
16 } |