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