Mercurial > repos > greg > ks_distribution
comparison ks_distribution.xml @ 9:214e2710c51e draft
Uploaded
author | greg |
---|---|
date | Fri, 23 Jun 2017 14:12:59 -0400 |
parents | 1650842a90ba |
children | 95ea500c158e |
comparison
equal
deleted
inserted
replaced
8:1650842a90ba | 9:214e2710c51e |
---|---|
1 <tool id="ks_distribution" name="KsDistribution" version="1.0.0"> | 1 <tool id="ks_distribution" name="KsDistribution" version="1.0.1"> |
2 <description>plots the distribution of synonymous substitution (Ks) rates and fits significant component(s)</description> | 2 <description>plots the distribution of synonymous substitution (Ks) rates and fits significant component(s)</description> |
3 <macros> | 3 <macros> |
4 <import>macros.xml</import> | 4 <import>macros.xml</import> |
5 </macros> | 5 </macros> |
6 <expand macro="requirements_ks_distribution" /> | 6 <expand macro="requirements_ks_distribution" /> |
7 <command detect_errors="exit_code"><![CDATA[ | 7 <command detect_errors="exit_code"><![CDATA[ |
8 import json | |
8 Rscript $__tool_directory__/ks_distribution.R | 9 Rscript $__tool_directory__/ks_distribution.R |
9 -k '$input' | 10 -k '$input' |
10 -c '$components' | 11 -c '$components' |
12 -n $input.num_components | |
11 -o '$output' | 13 -o '$output' |
14 #if str($choose_colors_cond.choose_colors) == 'yes': | |
15 #set ccs = list() | |
16 #for $i in $choose_colors_cond.colors: | |
17 $ccs.append($i.color) | |
18 #end for | |
19 -r '#echo json.dumps(ccs)#' | |
20 #end if | |
12 ]]></command> | 21 ]]></command> |
13 <inputs> | 22 <inputs> |
14 <param name="input" format="tabular" type="data" label="KaKsAnalysis tabular file" /> | 23 <param name="input" format="tabular" type="data" label="KaKsAnalysis tabular file" /> |
15 <param name="components" format="tabular" type="data" label="Significant components" /> | 24 <param name="components" format="ptkscmp" type="data" label="Significant components" /> |
25 <conditional name="choose_colors_cond"> | |
26 <param name="choose_colors" type="select" label="Choose colors for significant components"> | |
27 <option value="no" selected="true">No</option> | |
28 <option value="yes">Yes</option> | |
29 </param> | |
30 <when value="no" /> | |
31 <when value="yes"> | |
32 <repeat name="colors" title="Component colors" min="1"> | |
33 <param name="color" type="select" label="Color"> | |
34 <expand macro="color_selector" /> | |
35 </param> | |
36 </repeat> | |
37 </when> | |
38 </conditional> | |
16 </inputs> | 39 </inputs> |
17 <outputs> | 40 <outputs> |
18 <data name="output" format="pdf"/> | 41 <data name="output" format="pdf"/> |
19 </outputs> | 42 </outputs> |
20 <tests> | 43 <tests> |
21 <test> | 44 <test> |
22 <param name="input" value="kaks_input1.tabular" ftype="tabular" /> | 45 <param name="input" value="kaks_input1.tabular" ftype="tabular" /> |
23 <param name="components" value="components.tabular" ftype="tabular" /> | 46 <param name="components" value="components.ptkscmp" ftype="ptkscmp" /> |
24 <output name="output" file="output.pdf" ftype="pdf" compare="contains" /> | 47 <output name="output" file="output.pdf" ftype="pdf" compare="contains" /> |
25 </test> | 48 </test> |
26 </tests> | 49 </tests> |
27 <help> | 50 <help> |
28 **What it does** | 51 **What it does** |
35 | 58 |
36 **Options** | 59 **Options** |
37 | 60 |
38 * **Synonymous substitution rates** - estimated synonymous substitution (Ks) rates output file produced by the KaKsAnalysis tool selected from your history. | 61 * **Synonymous substitution rates** - estimated synonymous substitution (Ks) rates output file produced by the KaKsAnalysis tool selected from your history. |
39 * **Synonymous components** - estimated significant component(s) output file produced by the KaKsAnalysis tool selected from your history. | 62 * **Synonymous components** - estimated significant component(s) output file produced by the KaKsAnalysis tool selected from your history. |
63 * **Choose colors for significant components** - select 'Yes' to specify component colors or 'No' for colors chosen randlomly. | |
64 | |
65 * **Component colors** - select a color from the palette for each component (colors will be chosen randomly for unspecified components). | |
40 </help> | 66 </help> |
41 <citations> | 67 <citations> |
42 <expand macro="citation1" /> | 68 <expand macro="citation1" /> |
43 <citation type="bibtex"> | 69 <citation type="bibtex"> |
44 @article{Wall2008, | 70 @article{Wall2008, |