Mercurial > repos > yufei-luo > differential_expression_analysis_pipeline_for_rnaseq_data
comparison deseq/differential_expression_analysis_pipeline_for_rnaseq_data-a03838a6eb54/DiffExpAnal/DESeqTools/boxplotCounts.R @ 10:6e573fd3c41b draft
Uploaded
author | yufei-luo |
---|---|
date | Mon, 13 May 2013 10:06:30 -0400 |
parents | |
children |
comparison
equal
deleted
inserted
replaced
9:a03838a6eb54 | 10:6e573fd3c41b |
---|---|
1 # boxplotCounts | |
2 # boxplots representing counts distribution per sample | |
3 | |
4 # input : counts, target, projectName, type of data (raw or norm) | |
5 # output : boxplot (png) | |
6 | |
7 # created Feb 7th, 2012 | |
8 # modified April 30th, 2012 | |
9 # Marie-Anges Dillies | |
10 | |
11 boxplotCounts <- function( counts, group, type = c("raw", "norm"), OUT_boxplotCountsName, out = TRUE ){ | |
12 | |
13 if (out) png( file=OUT_boxplotCountsName ) | |
14 | |
15 boxplot( log2(counts+1), col=as.integer(group)+1, main = paste(type[1], " counts distribution", sep="" ) ) | |
16 legend( "topright", as.character(unique(group)), lty=1, col=as.integer(unique(group))+1 ) | |
17 | |
18 if (out) dev.off() | |
19 } |