# HG changeset patch # User iuc # Date 1547460139 18000 # Node ID 278b189248cd67ed412941002901f141991530ed # Parent 251393b72616036935dd1458701e4cf455e1be2b planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/dexseq commit c027cb925607cda29bb1e78fe76716af49a276ca diff -r 251393b72616 -r 278b189248cd dexseq.R --- a/dexseq.R Tue Dec 11 00:19:18 2018 -0500 +++ b/dexseq.R Mon Jan 14 05:02:19 2019 -0500 @@ -21,6 +21,7 @@ 'gtf', 'a', 1, "character", 'outfile', 'o', 1, "character", 'reportdir', 'r', 1, "character", + 'rds', 'd', 1, "character", 'factors', 'f', 1, "character", 'threads', 'p', 1, "integer", 'fdr', 'c', 1, "double" @@ -110,10 +111,11 @@ write.table(export_table, file = opt$outfile, sep="\t", quote = FALSE, col.names = FALSE) print("Written Results") +if ( !is.null(opt$rds) ) { + saveRDS(res, file="DEXSeqResults.rds") +} + if ( !is.null(opt$reportdir) ) { - save(dxd, resSorted, file = file.path(opt$reportdir,"DEXSeq_analysis.RData")) - save.image() DEXSeqHTML(res, fitExpToVar=primaryFactor, path=opt$reportdir, FDR=opt$fdr, color=c("#B7FEA0", "#FF8F43", "#637EE9", "#FF0000", "#F1E7A1", "#C3EEE7","#CEAEFF", "#EDC3C5", "#AAA8AA")) - unlink(file.path(opt$reportdir,"DEXSeq_analysis.RData")) } sessionInfo() diff -r 251393b72616 -r 278b189248cd dexseq.xml --- a/dexseq.xml Tue Dec 11 00:19:18 2018 -0500 +++ b/dexseq.xml Mon Jan 14 05:02:19 2019 -0500 @@ -1,4 +1,4 @@ - + Determines differential exon usage from count tables macros.xml @@ -54,6 +54,7 @@ -f '#echo json.dumps(temp_factor_names)#' -a $gtf -c $fdr_cutoff + -d $rds #if $report: -r ./html_out @@ -93,6 +94,8 @@ + @@ -100,6 +103,9 @@ report is True + + rds is True + @@ -151,6 +157,22 @@ + + + + + + + + + + + + + + + + + Visualization of the per gene DEXSeq results + + macros.xml + + + r-getopt + + /dev/null | grep -v -i "WARNING: ")" (depends on DESeq2 "$(R --vanilla --slave -e "library(DESeq2); cat(sessionInfo()\$otherPkgs\$DESeq2\$Version)" 2> /dev/null | grep -v -i "WARNING: ")")" + ]]> + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + 10.1101/gr.133744.111 + + diff -r 251393b72616 -r 278b189248cd test-data/dexseq.rds Binary file test-data/dexseq.rds has changed diff -r 251393b72616 -r 278b189248cd test-data/plotdexseq.pdf Binary file test-data/plotdexseq.pdf has changed diff -r 251393b72616 -r 278b189248cd test-data/plotdexseq_genes.tab --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/test-data/plotdexseq_genes.tab Mon Jan 14 05:02:19 2019 -0500 @@ -0,0 +1,3 @@ +FBgn0000053 +FBgn0000064 +FBgn0000024 diff -r 251393b72616 -r 278b189248cd test-data/plotdexseq_multi.pdf