Mercurial > repos > yufei-luo > s_mart
view SMART/DiffExpAnal/DESeqTools/MAplotDE.R @ 33:aa0420172fc6
Deleted selected files
author | m-zytnicki |
---|---|
date | Tue, 30 Apr 2013 14:34:53 -0400 |
parents | 94ab73e8a190 |
children |
line wrap: on
line source
# MAplotDE # MAplot of DE genes # input : res, alpha,OUT_MAplotDEName # output : MAplot (png) MAplotDE <- function( res, alpha, OUT_MAplotDEName, out = TRUE ){ if (out) png( file=OUT_MAplotDEName ) plot( res$baseMean, res$log2FoldChange, pch=".", xlab="Mean expression", ylab="log2FC", main="", log="x", col=ifelse(res$padj < alpha, "red", "black") ) abline(h=0, col="red") if (out) dev.off() }