18
|
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 }
|