Mercurial > repos > iuc > dexseq
comparison dexseq.xml @ 0:4ca0e679f21e draft
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/dexseq commit 876fc32b23d3b9c378ddbfbbba27d37d22576c85
author | iuc |
---|---|
date | Thu, 08 Oct 2015 16:52:01 -0400 |
parents | |
children | f1c406f9554c |
comparison
equal
deleted
inserted
replaced
-1:000000000000 | 0:4ca0e679f21e |
---|---|
1 <tool id="dexseq" name="DEXSeq" version="1.0"> | |
2 <description>Determines differential exon usage from count tables</description> | |
3 <requirements> | |
4 <requirement type="package" version="1.14">dexseq</requirement> | |
5 </requirements> | |
6 <code file="dexseq_helper.py" /> | |
7 <stdio> | |
8 <regex match="Execution halted" | |
9 source="both" | |
10 level="fatal" | |
11 description="Execution halted." /> | |
12 <regex match="Input-Error 01" | |
13 source="both" | |
14 level="fatal" | |
15 description="Error in your input parameters: Make sure you only apply factors to selected samples." /> | |
16 <regex match="Error in" | |
17 source="both" | |
18 level="fatal" | |
19 description="An undefined error occured, please check your input carefully and contact your administrator." /> | |
20 <regex match="Error:" | |
21 source="both" | |
22 level="fatal" | |
23 description="Error in the R script." /> | |
24 </stdio> | |
25 <version_command> | |
26 <![CDATA[ | |
27 echo $(R --version | grep version | grep -v GNU)", DEXSeq version" $(R --vanilla --slave -e "library(DEXSeq); cat(sessionInfo()\$otherPkgs\$DEXSeq\$Version)" 2> /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: ")")" | |
28 ]]> | |
29 </version_command> | |
30 <command> | |
31 <![CDATA[ | |
32 mkdir ./html_out && | |
33 #import json | |
34 Rscript $__tool_directory__/dexseq.R | |
35 -o "$dexseq_out" | |
36 -p \${GALAXY_SLOTS:-4} | |
37 #set $temp_factor_names = list() | |
38 #for $factor in $rep_factorName: | |
39 #set $temp_factor = list() | |
40 #set $count_files1 = list() | |
41 #for $file in $factor.countFiles1: | |
42 $count_files1.append(str($file)) | |
43 #end for | |
44 $temp_factor.append( {str($factor.factorLevel1): $count_files1} ) | |
45 | |
46 #set $count_files2 = list() | |
47 #for $file in $factor.countFiles2: | |
48 $count_files2.append(str($file)) | |
49 #end for | |
50 $temp_factor.append( {str($factor.factorLevel2): $count_files2} ) | |
51 $temp_factor_names.append([str($factor.factorName), $temp_factor]) | |
52 #end for | |
53 -f '#echo json.dumps(temp_factor_names)#' | |
54 -a $gtf | |
55 -c $fdr_cutoff | |
56 | |
57 #if $report: | |
58 -r ./html_out | |
59 && | |
60 mkdir $htmlreport.extra_files_path | |
61 && | |
62 cp ./html_out/testForDEU.html $htmlreport | |
63 && | |
64 cp -r ./html_out/* $htmlreport.extra_files_path | |
65 #end if | |
66 | |
67 ]]> | |
68 </command> | |
69 <inputs> | |
70 <param name="gtf" type="data" format="gtf,gff" label="GTF file created from DEXSeq-Count tool"/> | |
71 <repeat name="rep_factorName" title="Factor" min="1"> | |
72 <param name="factorName" type="text" value="FactorName" label="Specify a factor name" | |
73 help="Only letters, numbers and underscores will be retained in this field"> | |
74 <sanitizer> | |
75 <valid initial="string.letters,string.digits"><add value="_" /></valid> | |
76 </sanitizer> | |
77 </param> | |
78 <param name="factorLevel1" type="text" value="FactorLevel1" label="Specify a factor level" | |
79 help="Only letters, numbers and underscores will be retained in this field"> | |
80 <sanitizer> | |
81 <valid initial="string.letters,string.digits"><add value="_" /></valid> | |
82 </sanitizer> | |
83 </param> | |
84 <param name="countFiles1" type="data" format="tabular" multiple="true" label="Count file for factor level 1"/> | |
85 | |
86 <param name="factorLevel2" type="text" value="FactorLevel2" label="Specify a factor level" | |
87 help="Only letters, numbers and underscores will be retained in this field"> | |
88 <sanitizer> | |
89 <valid initial="string.letters,string.digits"><add value="_" /></valid> | |
90 </sanitizer> | |
91 </param> | |
92 <param name="countFiles2" type="data" format="tabular" multiple="true" label="Count files for factor level 2"/> | |
93 </repeat> | |
94 <param name="report" type="boolean" truevalue="True" falsevalue="False" checked="true" | |
95 label="Visualise the analysis results?" | |
96 help="Output an additional HTML file." /> | |
97 <param name="fdr_cutoff" type="float" min="0.0" max="1.0" value="0.05" label="All the genes under this FDR threshold will be shown in the html report"/> | |
98 </inputs> | |
99 <outputs> | |
100 <data format="tabular" name="dexseq_out" label="DEXSeq result file on ${on_string}" /> | |
101 <data format="html" name="htmlreport" label="DEXSeq report on ${on_string}"> | |
102 <filter>report is True</filter> | |
103 </data> | |
104 </outputs> | |
105 <tests> | |
106 <test> | |
107 <param name="gtf" value="dexseq.gtf" ftype="gtf"/> | |
108 <repeat name="rep_factorName"> | |
109 <param name="factorName" value="condition"/> | |
110 <param name="factorLevel1" value="knockdown"/> | |
111 <param name="countFiles1" value="treated1fb.txt,treated2fb.txt,treated3fb.txt" ftype="tabular"/> | |
112 <param name="factorLevel2" value="control"/> | |
113 <param name="countFiles2" value="untreated1fb.txt,untreated2fb.txt,untreated3fb.txt,untreated4fb.txt" ftype="tabular"/> | |
114 </repeat> | |
115 <repeat name="rep_factorName"> | |
116 <param name="factorName" value="libtype"/> | |
117 <param name="factorLevel1" value="singleend"/> | |
118 <param name="countFiles1" value="treated1fb.txt,untreated1fb.txt,untreated2fb.txt" ftype="tabular"/> | |
119 <param name="factorLevel2" value="pairedend"/> | |
120 <param name="countFiles2" value="treated2fb.txt,treated3fb.txt,untreated3fb.txt,untreated4fb.txt" ftype="tabular"/> | |
121 </repeat> | |
122 <param name="report" value="False"/> | |
123 <param name="fdr_cutoff" value="0.05"/> | |
124 <output name="dexseq_out" file="dexseq_result.tabular" ftype="tabular"/> | |
125 </test> | |
126 </tests> | |
127 <help> | |
128 <![CDATA[ | |
129 .. class:: infomark | |
130 | |
131 **What it does** | |
132 | |
133 Inference of differential exon usage in RNA-Seq. | |
134 | |
135 | |
136 **Inputs** | |
137 | |
138 DEXSeq_ takes count tables generated from the dexseq_count as input. Count tables must be generated for each sample individually. | |
139 DEXSeq_ is capable of handling multiple factors that effect your experiment. The first factor you input is considered as the primary | |
140 factor that affects gene expressions. Primary factor should always be named as 'condition'. You also input several secondary factors that might | |
141 influence your experiment. But the final output will be changes in genes due to primary factor in presence of secondary factors. Each factor has two levels/states. | |
142 You need to select appropriate count table from your history for each factor level. | |
143 | |
144 The following table gives some examples of factors and their levels: | |
145 | |
146 ========= ============== =============== | |
147 Factor Factor level 1 Factor level 2 | |
148 --------- -------------- --------------- | |
149 condition Knockdown Wildtype | |
150 --------- -------------- --------------- | |
151 treatment Treated Untreated | |
152 --------- -------------- --------------- | |
153 timePoint Day4 Day1 | |
154 --------- -------------- --------------- | |
155 SeqType SingleEnd PairedEnd | |
156 --------- -------------- --------------- | |
157 Gender Female Male | |
158 ========= ============== =============== | |
159 | |
160 *Note*: Output log2 fold changes are based on primary factor level 1 vs. factor level2. Here the order of factor levels is important. For example, for the factor 'condition' given in above table, DEXSeq computes fold changes of 'Knockdown' samples against 'Wildtype', i.e. the values correspond to up or down regulations of genes in Knockdown samples. | |
161 | |
162 **Output** | |
163 | |
164 DEXSeq_ generates a tabular file containing the different columns and an optional html report. | |
165 | |
166 ====== ========================================================== | |
167 Column Description | |
168 ------ ---------------------------------------------------------- | |
169 1 Gene and exon Identifiers | |
170 2 group/gene identifier | |
171 3 feature/exon identifier | |
172 4 mean of the counts across samples in each feature/exon | |
173 5 exon dispersion estimate | |
174 6 LRT statistic | |
175 7 LRT p-value | |
176 8 BH adjusted p-values | |
177 9 exon usage coefficient factorLevel 2 | |
178 10 exon usage coefficient factorLevel 1 | |
179 11 relative exon usage fold changes | |
180 12 GRanges object of the coordinates of the exon/feature | |
181 13 matrix of integer counts, of each column containing a sample | |
182 14 list of transcripts overlapping with the exon | |
183 ====== ========================================================== | |
184 | |
185 | |
186 .. _DEXSeq: http://master.bioconductor.org/packages/release/bioc/html/DEXSeq.html | |
187 ]]> | |
188 </help> | |
189 <citations> | |
190 <citation type="doi">10.1101/gr.133744.111</citation> | |
191 </citations> | |
192 </tool> |