# HG changeset patch # User xuebing # Date 1333249569 14400 # Node ID a1d49f6b3180bf392f3fe8302ab362b3c3c2509d Uploaded diff -r 000000000000 -r a1d49f6b3180 cdf.xml --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/cdf.xml Sat Mar 31 23:06:09 2012 -0400 @@ -0,0 +1,78 @@ + + plot of multiple numeric columns + cat $script_file | R --vanilla --slave > $out_log + + + + + + + + + + + + + + + + + + + + + + + + + + + ## Setup R error handling to go to stderr + options(warn=-1) + source("/Users/xuebing/galaxy-dist/tools/mytools/cdf.r") + uselog = as.character("${log}") + zero = as.character("${zero}") + title = as.character("${title}") + xlabel = as.character("${xlabel}") + if (uselog=='log'){ + xlabel = paste('log2',xlabel) + } + + labels = character(0) + x = list() + #for $i, $s in enumerate( $series ) + labels = c(labels,"${s.label.value}") + x0 = read.table( "${s.input.file_name}" ,sep='\t') + col = ${s.column.value} + if (col == -1) {col = ncol(x0)} + x0 = x0[,col] + if (zero == 'zero'){ + x0 = x0[x0 != 0] + } + if (uselog=='log'){ + x0=log2(1+x0) + } + print("${s.label.value}") + summary(x0) + x[[$i+1]] = x0 + #end for + pdf("${out_file}") + mycdf(x,title,labels,"${legendloc}",xlabel,'') + dev.off() + + + + + + + + + + +.. class:: infomark + +This tool generate barplot and CDF plot comparing multiple numeric columns in different files. + + + +