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