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[
|
22
|
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
|
22
|
19 -r '#echo json.dumps(ccs)#'
|
9
|
20 #end if
|
8
|
21 ]]></command>
|
0
|
22 <inputs>
|
5
|
23 <param name="input" format="tabular" type="data" label="KaKsAnalysis tabular file" />
|
9
|
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>
|
0
|
39 </inputs>
|
|
40 <outputs>
|
|
41 <data name="output" format="pdf"/>
|
|
42 </outputs>
|
|
43 <tests>
|
|
44 <test>
|
5
|
45 <param name="input" value="kaks_input1.tabular" ftype="tabular" />
|
9
|
46 <param name="components" value="components.ptkscmp" ftype="ptkscmp" />
|
0
|
47 <output name="output" file="output.pdf" ftype="pdf" compare="contains" />
|
|
48 </test>
|
|
49 </tests>
|
|
50 <help>
|
|
51 **What it does**
|
|
52
|
|
53 This tool is one of the PlantTribes collection of automated modular analysis pipelines for comparative and evolutionary analyses of
|
|
54 genome-scale gene families and transcriptomes. This tool uses the analysis results produced by the KaKsAnalysis tool to plot the
|
|
55 distribution of synonymous substitution (Ks) rates and fit the estimated significant normal mixtures component(s) onto the distribution.
|
|
56
|
|
57 -----
|
|
58
|
|
59 **Options**
|
|
60
|
1
|
61 * **Synonymous substitution rates** - estimated synonymous substitution (Ks) rates 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.
|
9
|
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).
|
0
|
66 </help>
|
|
67 <citations>
|
|
68 <expand macro="citation1" />
|
|
69 <citation type="bibtex">
|
|
70 @article{Wall2008,
|
|
71 journal = {Nucleic Acids Research},
|
|
72 author = {2. Wall PK, Leebens-Mack J, Muller KF, Field D, Altman NS},
|
|
73 title = {PlantTribes: a gene and gene family resource for comparative genomics in plants},
|
|
74 year = {2008},
|
|
75 volume = {36},
|
|
76 number = {suppl 1},
|
|
77 pages = {D970-D976},}
|
|
78 </citation>
|
|
79 <citation type="bibtex">
|
|
80 @article{Altschul1990,
|
|
81 journal = {Journal of molecular biology}
|
|
82 author = {3. Altschul SF, Gish W, Miller W, Myers EW, Lipman DJ},
|
|
83 title = {Basic local alignment search tool},
|
|
84 year = {1990},
|
|
85 volume = {215},
|
|
86 number = {3},
|
|
87 pages = {403-410},}
|
|
88 </citation>
|
|
89 <citation type="bibtex">
|
|
90 @article{Katoh2013,
|
|
91 journal = {Molecular biology and evolution},
|
|
92 author = {4. Katoh K, Standley DM},
|
|
93 title = {MAFFT multiple sequence alignment software version 7: improvements in performance and usability},
|
|
94 year = {2013},
|
|
95 volume = {30},
|
|
96 number = {4},
|
|
97 pages = {772-780},}
|
|
98 </citation>
|
|
99 <citation type="bibtex">
|
|
100 @article{Yang2007,
|
|
101 journal = {Molecular biology and evolution},
|
|
102 author = {5. Yang Z},
|
|
103 title = {PAML 4: phylogenetic analysis by maximum likelihood},
|
|
104 year = {2007},
|
|
105 volume = {24},
|
|
106 number = {8},
|
|
107 pages = {1586-1591},}
|
|
108 </citation>
|
|
109 <citation type="bibtex">
|
|
110 @article{Cui2006,
|
|
111 journal = {Genome Research},
|
|
112 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},
|
|
113 title = {Widespread genome duplications throughout the history of flowering plants},
|
|
114 year = {2006},
|
|
115 volume = {16},
|
|
116 number = {6},
|
|
117 pages = {738-749},}
|
|
118 </citation>
|
|
119 <citation type="bibtex">
|
|
120 @article{McLachlan1999,
|
|
121 journal = {Journal of Statistical Software},
|
|
122 author = {7. McLachlan GJ, Peel D, Basford KE, Adams P},
|
|
123 title = {The EMMIX software for the fitting of mixtures of normal and t-components},
|
|
124 year = {1999},
|
|
125 volume = {4},
|
|
126 number = {2},
|
|
127 pages = {1-14},}
|
|
128 </citation>
|
|
129 </citations>
|
|
130 </tool>
|
|
131
|