# HG changeset patch # User iuc # Date 1533460392 14400 # Node ID 81796eb60bd0068d132fe2353fbfb58f930905ab # Parent 7e8af58c805226d06cad3cb389c68b0fe6bc3a61 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/limma_voom commit 33651907e4d5d6672537b80142c022d2b4951e8c diff -r 7e8af58c8052 -r 81796eb60bd0 limma_voom.R --- a/limma_voom.R Mon Jun 11 08:18:25 2018 -0400 +++ b/limma_voom.R Sun Aug 05 05:13:12 2018 -0400 @@ -166,6 +166,7 @@ "totReq", "y", 0, "logical", "cntReq", "z", 1, "integer", "sampleReq", "s", 1, "integer", + "filtCounts", "F", 0, "logical", "normCounts", "x", 0, "logical", "rdaOpt", "r", 0, "logical", "lfcReq", "l", 1, "double", @@ -218,6 +219,12 @@ haveAnno <- TRUE } +if (is.null(opt$filtCounts)) { + wantFilt <- FALSE +} else { + wantFilt <- TRUE +} + if (is.null(opt$normCounts)) { wantNorm <- FALSE } else { @@ -364,7 +371,7 @@ topOut[i] <- makeOut(paste0(deMethod, "_", con, ".tsv")) glimmaOut[i] <- makeOut(paste0("glimma_", con, "/MD-Plot.html")) } - +filtOut <- makeOut(paste0(deMethod, "_filtcounts.tsv")) normOut <- makeOut(paste0(deMethod, "_normcounts.tsv")) rdaOut <- makeOut(paste0(deMethod, "_analysis.RData")) sessionOut <- makeOut("session_info.txt") @@ -440,6 +447,13 @@ data$counts <- data$counts[keep, ] data$genes <- data$genes[keep, , drop=FALSE] + if (wantFilt) { + print("Outputting filtered counts") + filt_counts <- data.frame(data$genes, data$counts) + write.table(filt_counts, file=filtOut, row.names=FALSE, sep="\t", quote=FALSE) + linkData <- rbind(linkData, data.frame(Label=paste0(deMethod, "_", "filtcounts.tsv"), Link=paste0(deMethod, "_", "filtcounts.tsv"), stringsAsFactors=FALSE)) + } + # Plot Density if ("d" %in% plots) { # PNG diff -r 7e8af58c8052 -r 81796eb60bd0 limma_voom.xml --- a/limma_voom.xml Mon Jun 11 08:18:25 2018 -0400 +++ b/limma_voom.xml Sun Aug 05 05:13:12 2018 -0400 @@ -1,4 +1,4 @@ - + Perform differential expression with limma-voom or limma-trend @@ -77,6 +77,10 @@ -P $out.plots #end if +#if $out.filtCounts: + -F +#end if + #if $out.normCounts: -x #end if @@ -272,6 +276,10 @@ + + @@ -465,9 +473,10 @@ - + + @@ -477,19 +486,31 @@ + + + + + - + - + - + + + + + + + +