9
|
1 <tool id="ks_distribution" name="KsDistribution" version="1.0.1">
|
5
|
2 <description>plots the distribution of synonymous substitution (Ks) rates and fits significant component(s)</description>
|
0
|
3 <macros>
|
|
4 <import>macros.xml</import>
|
|
5 </macros>
|
|
6 <expand macro="requirements_ks_distribution" />
|
8
|
7 <command detect_errors="exit_code"><![CDATA[
|
14
|
8 #import json
|
8
|
9 Rscript $__tool_directory__/ks_distribution.R
|
|
10 -k '$input'
|
|
11 -c '$components'
|
12
|
12 -n $components.metadata.num_comp
|
8
|
13 -o '$output'
|
9
|
14 #if str($choose_colors_cond.choose_colors) == 'yes':
|
|
15 #set ccs = list()
|
|
16 #for $i in $choose_colors_cond.colors:
|
15
|
17 $ccs.append(str($i.color))
|
9
|
18 #end for
|
|
19 -r '#echo json.dumps(ccs)#'
|
17
|
20 #else:
|
|
21 -r ''
|
9
|
22 #end if
|
8
|
23 ]]></command>
|
0
|
24 <inputs>
|
5
|
25 <param name="input" format="tabular" type="data" label="KaKsAnalysis tabular file" />
|
9
|
26 <param name="components" format="ptkscmp" type="data" label="Significant components" />
|
|
27 <conditional name="choose_colors_cond">
|
|
28 <param name="choose_colors" type="select" label="Choose colors for significant components">
|
|
29 <option value="no" selected="true">No</option>
|
|
30 <option value="yes">Yes</option>
|
|
31 </param>
|
|
32 <when value="no" />
|
|
33 <when value="yes">
|
|
34 <repeat name="colors" title="Component colors" min="1">
|
|
35 <param name="color" type="select" label="Color">
|
|
36 <expand macro="color_selector" />
|
|
37 </param>
|
|
38 </repeat>
|
|
39 </when>
|
|
40 </conditional>
|
0
|
41 </inputs>
|
|
42 <outputs>
|
|
43 <data name="output" format="pdf"/>
|
|
44 </outputs>
|
|
45 <tests>
|
|
46 <test>
|
5
|
47 <param name="input" value="kaks_input1.tabular" ftype="tabular" />
|
9
|
48 <param name="components" value="components.ptkscmp" ftype="ptkscmp" />
|
0
|
49 <output name="output" file="output.pdf" ftype="pdf" compare="contains" />
|
|
50 </test>
|
|
51 </tests>
|
|
52 <help>
|
|
53 **What it does**
|
|
54
|
|
55 This tool is one of the PlantTribes collection of automated modular analysis pipelines for comparative and evolutionary analyses of
|
|
56 genome-scale gene families and transcriptomes. This tool uses the analysis results produced by the KaKsAnalysis tool to plot the
|
|
57 distribution of synonymous substitution (Ks) rates and fit the estimated significant normal mixtures component(s) onto the distribution.
|
|
58
|
|
59 -----
|
|
60
|
|
61 **Options**
|
|
62
|
1
|
63 * **Synonymous substitution rates** - estimated synonymous substitution (Ks) rates output file produced by the KaKsAnalysis tool selected from your history.
|
|
64 * **Synonymous components** - estimated significant component(s) output file produced by the KaKsAnalysis tool selected from your history.
|
9
|
65 * **Choose colors for significant components** - select 'Yes' to specify component colors or 'No' for colors chosen randlomly.
|
|
66
|
|
67 * **Component colors** - select a color from the palette for each component (colors will be chosen randomly for unspecified components).
|
0
|
68 </help>
|
|
69 <citations>
|
|
70 <expand macro="citation1" />
|
|
71 <citation type="bibtex">
|
|
72 @article{Wall2008,
|
|
73 journal = {Nucleic Acids Research},
|
|
74 author = {2. Wall PK, Leebens-Mack J, Muller KF, Field D, Altman NS},
|
|
75 title = {PlantTribes: a gene and gene family resource for comparative genomics in plants},
|
|
76 year = {2008},
|
|
77 volume = {36},
|
|
78 number = {suppl 1},
|
|
79 pages = {D970-D976},}
|
|
80 </citation>
|
|
81 <citation type="bibtex">
|
|
82 @article{Altschul1990,
|
|
83 journal = {Journal of molecular biology}
|
|
84 author = {3. Altschul SF, Gish W, Miller W, Myers EW, Lipman DJ},
|
|
85 title = {Basic local alignment search tool},
|
|
86 year = {1990},
|
|
87 volume = {215},
|
|
88 number = {3},
|
|
89 pages = {403-410},}
|
|
90 </citation>
|
|
91 <citation type="bibtex">
|
|
92 @article{Katoh2013,
|
|
93 journal = {Molecular biology and evolution},
|
|
94 author = {4. Katoh K, Standley DM},
|
|
95 title = {MAFFT multiple sequence alignment software version 7: improvements in performance and usability},
|
|
96 year = {2013},
|
|
97 volume = {30},
|
|
98 number = {4},
|
|
99 pages = {772-780},}
|
|
100 </citation>
|
|
101 <citation type="bibtex">
|
|
102 @article{Yang2007,
|
|
103 journal = {Molecular biology and evolution},
|
|
104 author = {5. Yang Z},
|
|
105 title = {PAML 4: phylogenetic analysis by maximum likelihood},
|
|
106 year = {2007},
|
|
107 volume = {24},
|
|
108 number = {8},
|
|
109 pages = {1586-1591},}
|
|
110 </citation>
|
|
111 <citation type="bibtex">
|
|
112 @article{Cui2006,
|
|
113 journal = {Genome Research},
|
|
114 author = {6. Cui L, Wall PK, Leebens-Mack JH, Lindsay BG, Soltis DE, Doyle JJ, Soltis PS, Carlson JE, Arumuganathan K, Barakat A, Albert VA},
|
|
115 title = {Widespread genome duplications throughout the history of flowering plants},
|
|
116 year = {2006},
|
|
117 volume = {16},
|
|
118 number = {6},
|
|
119 pages = {738-749},}
|
|
120 </citation>
|
|
121 <citation type="bibtex">
|
|
122 @article{McLachlan1999,
|
|
123 journal = {Journal of Statistical Software},
|
|
124 author = {7. McLachlan GJ, Peel D, Basford KE, Adams P},
|
|
125 title = {The EMMIX software for the fitting of mixtures of normal and t-components},
|
|
126 year = {1999},
|
|
127 volume = {4},
|
|
128 number = {2},
|
|
129 pages = {1-14},}
|
|
130 </citation>
|
|
131 </citations>
|
|
132 </tool>
|
|
133
|