Mercurial > repos > yufei-luo > s_mart
comparison SMART/DiffExpAnal/DESeqTools/exportComplete.R @ 18:94ab73e8a190
Uploaded
author | m-zytnicki |
---|---|
date | Mon, 29 Apr 2013 03:20:15 -0400 |
parents | |
children |
comparison
equal
deleted
inserted
replaced
17:b0e8584489e6 | 18:94ab73e8a190 |
---|---|
1 # exportComplete | |
2 # export complete data and results | |
3 | |
4 # input : counts res, target | |
5 # output : complete data and xls file (in text format) | |
6 | |
7 # created Feb 14th, 2012 | |
8 # modified March 9th, 2012 (order of cond1 and cond2) | |
9 | |
10 | |
11 exportComplete <- function( counts, res, target, adjMethod, cond1, cond2, OUT_completeName, out = T ){ | |
12 | |
13 complete <- data.frame( res$id, counts, res[,3:ncol(res)] ) | |
14 colnames(complete) <- c( "id", as.character(target$label), cond2, cond1, "FC", "log2FC", "rawp", | |
15 paste("adjp",adjMethod,sep="") ) | |
16 | |
17 if (out) | |
18 write.table( complete, file=OUT_completeName, sep="\t", row.names=F ) | |
19 return( complete ) | |
20 } |