annotate ks_distribution.xml @ 3:f5bdcd2729cc draft

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