annotate viz.xml @ 7:77d835d85a2f draft

Uploaded
author glogobyte
date Wed, 13 Oct 2021 11:19:52 +0000
parents 5e57bcdc731c
children
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
6
5e57bcdc731c Uploaded
glogobyte
parents:
diff changeset
1 <tool id="mirViz" name="mirViz: Vizualizations and reports" version="0.1.0">
5e57bcdc731c Uploaded
glogobyte
parents:
diff changeset
2 <requirements>
5e57bcdc731c Uploaded
glogobyte
parents:
diff changeset
3 <requirement type="package" version="1.7">fpdf</requirement>
5e57bcdc731c Uploaded
glogobyte
parents:
diff changeset
4 <requirement type="package" version="3.7.4">python</requirement>
5e57bcdc731c Uploaded
glogobyte
parents:
diff changeset
5 <requirement type="package" version="1.17.3">numpy</requirement>
5e57bcdc731c Uploaded
glogobyte
parents:
diff changeset
6 <requirement type="package" version="3.1.2">matplotlib</requirement>
5e57bcdc731c Uploaded
glogobyte
parents:
diff changeset
7 <requirement type="package" version="1.0.3">pandas</requirement>
5e57bcdc731c Uploaded
glogobyte
parents:
diff changeset
8 </requirements>
5e57bcdc731c Uploaded
glogobyte
parents:
diff changeset
9 <command>
5e57bcdc731c Uploaded
glogobyte
parents:
diff changeset
10 #if $opt.stats.choice == "1":
5e57bcdc731c Uploaded
glogobyte
parents:
diff changeset
11 python $__tool_directory__/viz.py -in $input_file -p_value "$opt.stats.pvalue" -fc $opt.log2fc -top $opt.top_mirna -tool_dir $__tool_directory__ -statistic "$opt.stats.choice" -diff_tool "$opt.tool"
5e57bcdc731c Uploaded
glogobyte
parents:
diff changeset
12 #elif $opt.stats.choice == "2":
5e57bcdc731c Uploaded
glogobyte
parents:
diff changeset
13 python $__tool_directory__/viz.py -in $input_file -p_value "$opt.stats.padj" -fc $opt.log2fc -top $opt.top_mirna -tool_dir $__tool_directory__ -statistic "$opt.stats.choice" -diff_tool "$opt.tool"
5e57bcdc731c Uploaded
glogobyte
parents:
diff changeset
14 #else:
5e57bcdc731c Uploaded
glogobyte
parents:
diff changeset
15 python $__tool_directory__/viz.py -in $input_file -p_value "$opt.stats.Basemean" -fc $opt.log2fc -top $opt.top_mirna -tool_dir $__tool_directory__ -statistic "$opt.stats.choice" -diff_tool "$opt.tool"
5e57bcdc731c Uploaded
glogobyte
parents:
diff changeset
16 #end if
5e57bcdc731c Uploaded
glogobyte
parents:
diff changeset
17 </command>
5e57bcdc731c Uploaded
glogobyte
parents:
diff changeset
18 <inputs>
5e57bcdc731c Uploaded
glogobyte
parents:
diff changeset
19 <conditional name="opt">
5e57bcdc731c Uploaded
glogobyte
parents:
diff changeset
20 <param name="tool" type="select" label="Input file source:" help="Choose the tool which generates the input file.">
5e57bcdc731c Uploaded
glogobyte
parents:
diff changeset
21 <option value="1" selected="true">Deseq2</option>
5e57bcdc731c Uploaded
glogobyte
parents:
diff changeset
22 <option value="2">EdgeR</option>
5e57bcdc731c Uploaded
glogobyte
parents:
diff changeset
23 </param>
5e57bcdc731c Uploaded
glogobyte
parents:
diff changeset
24 <when value="1">
5e57bcdc731c Uploaded
glogobyte
parents:
diff changeset
25 <param name="input_file" type="data" format="tabular" label="Input file" help="File from Deseq2"/>
5e57bcdc731c Uploaded
glogobyte
parents:
diff changeset
26 <param name="top_mirna" type="select" label="Choose the number of top differentially miRNAs in the report" help="Choose the number of top differentially expressed miRNAs.">
5e57bcdc731c Uploaded
glogobyte
parents:
diff changeset
27 <option value="10" selected="true">Top 10</option>
5e57bcdc731c Uploaded
glogobyte
parents:
diff changeset
28 <option value="20">Top 20</option>
5e57bcdc731c Uploaded
glogobyte
parents:
diff changeset
29 <option value="30">Top 30</option>
5e57bcdc731c Uploaded
glogobyte
parents:
diff changeset
30 <option value="40">Top 40</option>
5e57bcdc731c Uploaded
glogobyte
parents:
diff changeset
31 <option value="50">Top 50</option>
5e57bcdc731c Uploaded
glogobyte
parents:
diff changeset
32 </param>
5e57bcdc731c Uploaded
glogobyte
parents:
diff changeset
33 <conditional name="stats">
5e57bcdc731c Uploaded
glogobyte
parents:
diff changeset
34 <param name="choice" type="select" label="Filter by p-value, p-adj or Base mean">
5e57bcdc731c Uploaded
glogobyte
parents:
diff changeset
35 <option value="1" selected="true">p-value</option>
5e57bcdc731c Uploaded
glogobyte
parents:
diff changeset
36 <option value="2">P-adj</option>
5e57bcdc731c Uploaded
glogobyte
parents:
diff changeset
37 <option value="3">Base mean</option>
5e57bcdc731c Uploaded
glogobyte
parents:
diff changeset
38 </param>
5e57bcdc731c Uploaded
glogobyte
parents:
diff changeset
39 <when value="1">
5e57bcdc731c Uploaded
glogobyte
parents:
diff changeset
40 <param name="pvalue" type="float" min="0" max="1" value="0.05" label="P-value (max value)" help="p-value threshold" />
5e57bcdc731c Uploaded
glogobyte
parents:
diff changeset
41 </when>
5e57bcdc731c Uploaded
glogobyte
parents:
diff changeset
42 <when value="2">
5e57bcdc731c Uploaded
glogobyte
parents:
diff changeset
43 <param name="padj" type="float" min="0" max="1" value="0.05" label="P-adjustment (max value)" help="p-adjustment threshold" />
5e57bcdc731c Uploaded
glogobyte
parents:
diff changeset
44 </when>
5e57bcdc731c Uploaded
glogobyte
parents:
diff changeset
45 <when value="3">
5e57bcdc731c Uploaded
glogobyte
parents:
diff changeset
46 <param name="Basemean" type="integer" value="0" min="0" label="Base mean (min value)" help="Base mean threshold" />
5e57bcdc731c Uploaded
glogobyte
parents:
diff changeset
47 </when>
5e57bcdc731c Uploaded
glogobyte
parents:
diff changeset
48 </conditional>
5e57bcdc731c Uploaded
glogobyte
parents:
diff changeset
49 <param name="log2fc" type="float" min="0" max="10" value="1" label="Log2FC (Absolute value)" help="Log2FC threshold" />
5e57bcdc731c Uploaded
glogobyte
parents:
diff changeset
50 </when>
5e57bcdc731c Uploaded
glogobyte
parents:
diff changeset
51 <when value="2">
5e57bcdc731c Uploaded
glogobyte
parents:
diff changeset
52 <param name="input_file" type="data" format="tabular" label="Input file" help="File from EdgeR"/>
5e57bcdc731c Uploaded
glogobyte
parents:
diff changeset
53 <param name="top_mirna" type="select" label="Choose the number of top differentially miRNAs in the report" help="Choose the number of top differentially expressed miRNAs.">
5e57bcdc731c Uploaded
glogobyte
parents:
diff changeset
54 <option value="10" selected="true">Top 10</option>
5e57bcdc731c Uploaded
glogobyte
parents:
diff changeset
55 <option value="20">Top 20</option>
5e57bcdc731c Uploaded
glogobyte
parents:
diff changeset
56 <option value="30">Top 30</option>
5e57bcdc731c Uploaded
glogobyte
parents:
diff changeset
57 <option value="40">Top 40</option>
5e57bcdc731c Uploaded
glogobyte
parents:
diff changeset
58 <option value="50">Top 50</option>
5e57bcdc731c Uploaded
glogobyte
parents:
diff changeset
59 </param>
5e57bcdc731c Uploaded
glogobyte
parents:
diff changeset
60 <conditional name="stats">
5e57bcdc731c Uploaded
glogobyte
parents:
diff changeset
61 <param name="choice" type="select" label="Filter by p-value or p-adj">
5e57bcdc731c Uploaded
glogobyte
parents:
diff changeset
62 <option value="1" selected="true">p-value</option>
5e57bcdc731c Uploaded
glogobyte
parents:
diff changeset
63 <option value="2">P-adj</option>
5e57bcdc731c Uploaded
glogobyte
parents:
diff changeset
64 </param>
5e57bcdc731c Uploaded
glogobyte
parents:
diff changeset
65 <when value="1">
5e57bcdc731c Uploaded
glogobyte
parents:
diff changeset
66 <param name="pvalue" type="float" min="0" max="1" value="0.05" label="P-value (max value)" help="p-value threshold" />
5e57bcdc731c Uploaded
glogobyte
parents:
diff changeset
67 </when>
5e57bcdc731c Uploaded
glogobyte
parents:
diff changeset
68 <when value="2">
5e57bcdc731c Uploaded
glogobyte
parents:
diff changeset
69 <param name="padj" type="float" min="0" max="1" value="0.05" label="P-adjustment (max value)" help="p-adjustment threshold" />
5e57bcdc731c Uploaded
glogobyte
parents:
diff changeset
70 </when>
5e57bcdc731c Uploaded
glogobyte
parents:
diff changeset
71 </conditional>
5e57bcdc731c Uploaded
glogobyte
parents:
diff changeset
72 <param name="log2fc" type="float" min="0" max="10" value="1" label="Log2FC (Absolute value)" help="Log2FC threshold" />
5e57bcdc731c Uploaded
glogobyte
parents:
diff changeset
73 </when>
5e57bcdc731c Uploaded
glogobyte
parents:
diff changeset
74 </conditional>
5e57bcdc731c Uploaded
glogobyte
parents:
diff changeset
75 </inputs>
5e57bcdc731c Uploaded
glogobyte
parents:
diff changeset
76 <outputs>
5e57bcdc731c Uploaded
glogobyte
parents:
diff changeset
77 <data name="File" format="pdf" label="Differential expression of miRNAs and isoforms" from_work_dir="$__tool_directory__/report2.pdf" />
5e57bcdc731c Uploaded
glogobyte
parents:
diff changeset
78 </outputs>
5e57bcdc731c Uploaded
glogobyte
parents:
diff changeset
79 <help>
5e57bcdc731c Uploaded
glogobyte
parents:
diff changeset
80
5e57bcdc731c Uploaded
glogobyte
parents:
diff changeset
81 </help>
5e57bcdc731c Uploaded
glogobyte
parents:
diff changeset
82 </tool>