annotate ks_distribution.xml @ 5:dc4e4a1b3676 draft default tip

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