# HG changeset patch # User iuc # Date 1559052250 14400 # Node ID c9c6427edfe9b3ce7289d17f3b7734e4053c2a5b # Parent 97e06a4c7c75e2b28b92f4358c5a9d1bf62c21e4 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/limma_voom commit 4c0406815cb76175d7d90b2874310635694126f5 diff -r 97e06a4c7c75 -r c9c6427edfe9 limma_voom.R --- a/limma_voom.R Sun May 05 09:02:04 2019 -0400 +++ b/limma_voom.R Tue May 28 10:04:10 2019 -0400 @@ -9,7 +9,8 @@ # factFile", "f", 2, "character" -Path to factor information file # factInput", "i", 2, "character" -String containing factors if manually input # annoPath", "a", 2, "character" -Path to input containing gene annotations -# contrastData", "C", 1, "character" -String containing contrasts of interest +# contrastFile", "C", 1, "character" -Path to contrasts information file +# contrastInput", "D", 1, "character" -String containing contrasts of interest # cpmReq", "c", 2, "double" -Float specifying cpm requirement # cntReq", "z", 2, "integer" -Integer specifying minimum total count requirement # sampleReq", "s", 2, "integer" -Integer specifying cpm requirement @@ -161,7 +162,8 @@ "factFile", "f", 2, "character", "factInput", "i", 2, "character", "annoPath", "a", 2, "character", - "contrastData", "C", 1, "character", + "contrastFile", "C", 1, "character", + "contrastInput", "D", 1, "character", "cpmReq", "c", 1, "double", "totReq", "y", 0, "logical", "cntReq", "z", 1, "integer", @@ -343,11 +345,18 @@ #Create output directory dir.create(opt$outPath, showWarnings=FALSE) -# Split up contrasts seperated by comma into a vector then sanitise -contrastData <- unlist(strsplit(opt$contrastData, split=",")) +# Process contrasts +if (is.null(opt$contrastInput)) { + contrastData <- read.table(opt$contrastFile, header=TRUE, sep="\t", quote= "", strip.white=TRUE, stringsAsFactors=FALSE) + contrastData <- contrastData[, 1, drop=TRUE] +} else { + # Split up contrasts seperated by comma into a vector then sanitise + contrastData <- unlist(strsplit(opt$contrastInput, split=",")) +} + +# in case input groups start with numbers this will make the names valid R names, required for makeContrasts contrastData <- sanitiseEquation(contrastData) contrastData <- gsub(" ", ".", contrastData, fixed=TRUE) -# in case input groups start with numbers this will make the names valid R names, required for makeContrasts cons <- NULL for (i in contrastData) { i <- strsplit(i, split="-") diff -r 97e06a4c7c75 -r c9c6427edfe9 limma_voom.xml --- a/limma_voom.xml Sun May 05 09:02:04 2019 -0400 +++ b/limma_voom.xml Tue May 28 10:04:10 2019 -0400 @@ -1,4 +1,4 @@ - + Perform differential expression with limma-voom or limma-trend @@ -57,7 +57,11 @@ -a '$anno.geneanno' #end if --C '${ ','.join( ['%s' % $x.contrast for x in $rep_contrast] ) }' +#if $cont.cfile=='yes': + -C '$cont.cinfo' +#else: + -D '${ ','.join( ['%s' % $x.contrast for x in $cont.rep_contrast] ) }' +#end if #if $f.filt.filt_select == 'yes': #if $f.filt.cformat.format_select == 'cpm': @@ -223,12 +227,24 @@ - - - - ^[\(\w\)-]+$ + + + + - + + + + + + + + ^[\(\w\)-]+$ + + + +
@@ -360,6 +376,7 @@ + @@ -400,6 +417,7 @@ + @@ -424,6 +442,7 @@ + @@ -452,6 +471,7 @@ + @@ -472,6 +492,7 @@ + @@ -496,6 +517,7 @@ + @@ -559,6 +581,7 @@ + @@ -596,6 +619,7 @@ + @@ -626,6 +650,7 @@ + @@ -656,6 +681,7 @@ + @@ -683,6 +709,33 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + +