comparison DiffExpAnal/DESeqTools/exportComplete.R @ 0:63799b789162 draft

Uploaded
author yufei-luo
date Tue, 22 Jan 2013 10:07:03 -0500
parents
children
comparison
equal deleted inserted replaced
-1:000000000000 0:63799b789162
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 # Marie-Anges Dillies
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 }