# HG changeset patch # User iuc # Date 1538319089 14400 # Node ID d5a9401125111f9ea036273276b5641d65d17e96 # Parent 81796eb60bd0068d132fe2353fbfb58f930905ab planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/limma_voom commit 8560b34a261fde200bd77dc2e817d55d386ac811 diff -r 81796eb60bd0 -r d5a940112511 limma_voom.R --- a/limma_voom.R Sun Aug 05 05:13:12 2018 -0400 +++ b/limma_voom.R Sun Sep 30 10:51:29 2018 -0400 @@ -371,8 +371,8 @@ 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")) +filtOut <- makeOut(paste0(deMethod, "_", "filtcounts")) +normOut <- makeOut(paste0(deMethod, "_", "normcounts")) rdaOut <- makeOut(paste0(deMethod, "_analysis.RData")) sessionOut <- makeOut("session_info.txt") @@ -451,7 +451,7 @@ 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)) + linkData <- rbind(linkData, data.frame(Label=paste0(deMethod, "_", "filtcounts.tsv"), Link=paste0(deMethod, "_", "filtcounts"), stringsAsFactors=FALSE)) } # Plot Density @@ -723,7 +723,7 @@ # Save normalised counts (log2cpm) if (wantNorm) { write.table(logCPM, file=normOut, row.names=TRUE, sep="\t", quote=FALSE) - linkData <- rbind(linkData, c((paste0(deMethod, "_", "normcounts.tsv")), (paste0(deMethod, "_", "normcounts.tsv")))) + linkData <- rbind(linkData, c((paste0(deMethod, "_", "normcounts.tsv")), (paste0(deMethod, "_", "normcounts")))) } } else { # limma-voom approach @@ -774,7 +774,7 @@ if (wantNorm) { norm_counts <- data.frame(vData$genes, vData$E) write.table(norm_counts, file=normOut, row.names=FALSE, sep="\t", quote=FALSE) - linkData <- rbind(linkData, c((paste0(deMethod, "_", "normcounts.tsv")), (paste0(deMethod, "_", "normcounts.tsv")))) + linkData <- rbind(linkData, c((paste0(deMethod, "_", "normcounts.tsv")), (paste0(deMethod, "_", "normcounts")))) } # Fit linear model and estimate dispersion with eBayes @@ -1052,7 +1052,9 @@ cata("

Tables:

\n") for (i in 1:nrow(linkData)) { - if (grepl(".tsv", linkData$Link[i])) { + if (grepl("counts$", linkData$Link[i])) { + HtmlLink(linkData$Link[i], linkData$Label[i]) + } else if (grepl(".tsv", linkData$Link[i])) { HtmlLink(linkData$Link[i], linkData$Label[i]) } } diff -r 81796eb60bd0 -r d5a940112511 limma_voom.xml --- a/limma_voom.xml Sun Aug 05 05:13:12 2018 -0400 +++ b/limma_voom.xml Sun Sep 30 10:51:29 2018 -0400 @@ -1,4 +1,4 @@ - + Perform differential expression with limma-voom or limma-trend @@ -123,8 +123,13 @@ #if $anno.annoOpt=='yes': cp -r ./glimma* '$outReport.files_path' && #end if + cp '$outReport.files_path'/*tsv output_dir/ +#if $out.filtCounts or $out.normCounts: + && cp '$outReport.files_path'/*counts output_dir/ +#end if + #if $out.rscript: && cp '$__tool_directory__/limma_voom.R' '$rscript' #end if @@ -328,9 +333,15 @@ - + + + out['filtCounts'] + + + out['normCounts'] + out['rscript'] @@ -493,27 +504,27 @@ - + - - - - - - - - - - - - - + + + + + + + + + + + + + @@ -554,7 +565,7 @@ - + @@ -567,13 +578,13 @@ - - - - - - + + + + + +