# HG changeset patch
# User pavanvidem
# Date 1441272349 14400
# Node ID b7235a9b188143282f6b45dee1bfe122bb08a747
# Parent ce3f79d2feb5c2a92c4b43e3fc1836c7e68e50c0
Uploaded
diff -r ce3f79d2feb5 -r b7235a9b1881 dexseq.R
--- a/dexseq.R Tue Sep 01 11:08:29 2015 -0400
+++ b/dexseq.R Thu Sep 03 05:25:49 2015 -0400
@@ -19,20 +19,12 @@
'gtf', 'a', 1, "character",
'outfile', 'o', 1, "character",
'reportdir', 'r', 1, "character",
- 'htmlfile', 'x', 1, "character",
'factors', 'f', 1, "character",
'threads', 'p', 1, "integer",
'fdr', 'c', 1, "double"
), byrow=TRUE, ncol=4);
opt = getopt(spec);
-
-#reportdir <- gsub(".dat", "_files", opt$outfile)
-
-dir.create(file.path(opt$reportdir))
-setwd(opt$reportdir)
-getwd()
-
# if help was asked for print a friendly message
# and exit with a non-zero error code
if ( !is.null(opt$help) ) {
@@ -86,7 +78,6 @@
primaryFactor
countFiles
opt$reportdir
-opt$htmlfile
opt$threads
getwd()
@@ -112,6 +103,4 @@
DEXSeqHTML(res, path=opt$reportdir, FDR=opt$fdr, color=c("#C3EEE7","#B7FEA0","#F1E7A1","#CEAEFF","#FF8F43","#EDC3C5","#AAA8AA","#FF0000","#637EE9","#FBFBFB"))
unlink(file.path(opt$reportdir,"DEXSeq_analysis.RData"))
}
-file.remove(opt$htmlfile)
-file.symlink(file.path(opt$reportdir,"testForDEU.html"), opt$htmlfile)
sessionInfo()
diff -r ce3f79d2feb5 -r b7235a9b1881 dexseq.xml
--- a/dexseq.xml Tue Sep 01 11:08:29 2015 -0400
+++ b/dexseq.xml Thu Sep 03 05:25:49 2015 -0400
@@ -2,14 +2,14 @@
Determines differential exon usage from count tables
R
- Rscript
+ tiff
DEXSeq
+ mkdir ./html_out ;
#import json
- Rscript /usr/local/galaxy/shed_tools/testtoolshed.g2.bx.psu.edu/repos/pavanvidem/dexseq/cbd118202fd1/dexseq/dexseq.R
- #set $reportdir = str($dexseq_out).replace('.dat','_files')
+ Rscript $__tool_directory__/dexseq.R
-o "$dexseq_out"
-p 12
#set $temp_factor_names = list()
@@ -27,12 +27,12 @@
-f '#echo json.dumps(temp_factor_names)#'
-a $gtf
#if $report:
- -x "$htmlreport"
- -r "$reportdir"
+ -r ./html_out
#end if
-c $fdr_cutoff;
-
-## cp #echo os.path.join($reportdir, 'testForDEU.html')# $htmlreport;
+ mkdir $htmlreport.extra_files_path;
+ cp ./html_out/testForDEU.html $htmlreport ;
+ cp -r ./html_out/* $htmlreport.extra_files_path ;
- 10.1101/002832
+ 10.1101/gr.133744.111
diff -r ce3f79d2feb5 -r b7235a9b1881 dexseq_count.xml
--- /dev/null Thu Jan 01 00:00:00 1970 +0000
+++ b/dexseq_count.xml Thu Sep 03 05:25:49 2015 -0400
@@ -0,0 +1,77 @@
+
+ Prepare and count exon abundancies from RNA-seq data
+
+ R
+ DEXSeq
+
+
+ #if $mode.mode_select == "prepare":
+ python $INSTALL_DIR/python_scripts/dexseq_prepare_annotation.py -r $aggregate $gtf $flattened_gtf_out
+ #elif $mode.mode_select == "count":
+ python $INSTALL_DIR/python_scripts/dexseq_count.py -f bam -p $paired -r $order -s $stranded $flattened_gtf_in $bamfile $counts_file
+ #end if
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ (mode['mode_select'] == 'count')
+
+
+ (mode['mode_select'] == 'prepare')
+
+
+
+
+
+.. class:: infomark
+
+**What it does**
+
+The main goal of this tol is to count the number of reads/fragments per exon of each gene in RNA-seq sample. In addition it also prepares your annotation gtf file compatible for counting.
+
+
+**Inputs**
+
+Mode-preprare: Takes a normal gtf file as input. For example from ensembl database.
+Mode-count: Inputs are flattened gtf file and BAM file. The flattened gtf file can be generated from 'prepare' mode of this tool.
+
+**Output**
+
+Mode-preprare: Flattened gtf file that contains only exons with corresponding gene ids from given gtf file. Sometimes two or more genes sharing an exon will be merged into an 'aggregate gene' if the aggregate option was used.
+Mode-count: Two column tab-delimeted file with exon ids and their read counts.
+
+.. _DEXSeq: http://master.bioconductor.org/packages/release/bioc/html/DEXSeq.html
+
+
+
+
+ 10.1101/gr.133744.111
+
+
diff -r ce3f79d2feb5 -r b7235a9b1881 tool_dependencies.xml
--- a/tool_dependencies.xml Tue Sep 01 11:08:29 2015 -0400
+++ b/tool_dependencies.xml Thu Sep 03 05:25:49 2015 -0400
@@ -4,7 +4,7 @@
-
+
@@ -13,7 +13,7 @@
-
+
https://github.com/bgruening/download_store/raw/master/DEXSeq_1.14.2/Cairo_1.5-8.tar.gz