Mercurial > repos > cpt > cpt_psm_plotter
comparison cpt_psm_1_plot.xml @ 1:8691c1c61a8e draft default tip
planemo upload commit 94b0cd1fff0826c6db3e7dc0c91c0c5a8be8bb0c
author | cpt |
---|---|
date | Mon, 05 Jun 2023 02:48:47 +0000 |
parents | |
children |
comparison
equal
deleted
inserted
replaced
0:54c7a3ea81e2 | 1:8691c1c61a8e |
---|---|
1 <tool id="PSM.Plot" name="PSM Plotter" version="1.94.2"> | |
2 <description>plots data from PSM Prep</description> | |
3 <version_command>perl cpt_psm_1_plot.pl --version</version_command> | |
4 <stdio> | |
5 <exit_code range="1:" level="fatal"/> | |
6 </stdio> | |
7 <requirements> | |
8 <requirement type="package" version="5.22.1">perl</requirement> | |
9 <requirement type="package">perl-bioperl</requirement> | |
10 <requirement type="package">perl-moose</requirement> | |
11 <requirement type="package">perl-ipc-run</requirement> | |
12 <requirement type="package">perl-getopt-long-descriptive</requirement> | |
13 </requirements> | |
14 <command detect_errors="aggressive"><![CDATA[ | |
15 perl -Mlib='$__tool_directory__/lib' '$__tool_directory__/cpt_psm_1_plot.pl' | |
16 --galaxy | |
17 --outfile_supporting '$__new_file_path__' | |
18 --file "${file}" | |
19 | |
20 --user_ordering "${user_ordering}" | |
21 | |
22 #if $percent_filled and $percent_filled is not "None": | |
23 --percent_filled "${percent_filled}" | |
24 #end if | |
25 | |
26 #if $ig_dist and $ig_dist is not "None": | |
27 --ig_dist "${ig_dist}" | |
28 #end if | |
29 | |
30 #if $stroke_thickness and $stroke_thickness is not "None": | |
31 --stroke_thickness "${stroke_thickness}" | |
32 #end if | |
33 | |
34 #if $every_nth and $every_nth is not "None": | |
35 --every_nth "${every_nth}" | |
36 #end if | |
37 | |
38 #if $evalue and $evalue is not "None": | |
39 --evalue "${evalue}" | |
40 #end if | |
41 | |
42 #if $dice and $dice is not "None": | |
43 --dice "${dice}" | |
44 #end if | |
45 | |
46 #if $mismatch and $mismatch is not "None": | |
47 --mismatch "${mismatch}" | |
48 #end if | |
49 | |
50 #if $gap_penalty and $gap_penalty is not "None": | |
51 --gap_penalty "${gap_penalty}" | |
52 #end if | |
53 | |
54 #if $match and $match is not "None": | |
55 --match "${match}" | |
56 #end if | |
57 | |
58 --output_circos_confs "${output_circos_confs}" | |
59 | |
60 --output_circos_confs_files_path "${output_circos_confs.files_path}" | |
61 | |
62 --output_circos_confs_format "${output_circos_confs_format}" | |
63 | |
64 --output_circos_confs_id "${output_circos_confs.id}" | |
65 | |
66 ]]></command> | |
67 <inputs> | |
68 <param name="file" help="PSM2 Data File" optional="False" label="file" type="data"/> | |
69 <param name="user_ordering" help="List of genome IDs used in the analysis, can be comma/space/newline separated." optional="False" label="user_ordering" type="text"/> | |
70 <param min="0.1" value="0.8" max="1.0" name="percent_filled" optional="True" help="Percentage of a whole block that an individual gene is" type="float" label="percent_filled"/> | |
71 <param value="100" name="ig_dist" help="Maximum length of links between genome comparisons" optional="True" label="ig_dist" type="integer"/> | |
72 <param min="1" value="2" max="10" name="stroke_thickness" optional="True" help="Thickness of inter-genome links" type="integer" label="stroke_thickness"/> | |
73 <param value="20" name="every_nth" optional="True" help="Plot every Nth gene a modified version of the main color for that genome" label="every_nth" type="integer"/> | |
74 <param value="0.0001" name="evalue" optional="True" help="Evalue cutoff" label="evalue" type="float"/> | |
75 <param value="50" name="dice" optional="True" help="Dice cutoff" label="dice" type="float"/> | |
76 <param value="-0.1" name="mismatch" optional="True" help="Mismatch Score" label="mismatch" type="float"/> | |
77 <param value="0.0" name="gap_penalty" optional="True" help="Gap Penalty" label="gap_penalty" type="float"/> | |
78 <param value="5" name="match" optional="True" help="Match Score" label="match" type="float"/> | |
79 <param name="output_circos_confs_format" help="Output Circos Conf Object" optional="False" label="Format of output_circos_confs" type="select"> | |
80 <option value="zip">zip</option> | |
81 </param> | |
82 </inputs> | |
83 <outputs> | |
84 <data name="output_circos_confs" format="tar.gz"> | |
85 <change_format> | |
86 <when input="output_circos_confs_format" value="tar.gz" format="tar.gz"/> | |
87 <when input="output_circos_confs_format" value="zip" format="zip"/> | |
88 <when input="output_circos_confs_format" value="tar" format="tar"/> | |
89 </change_format> | |
90 </data> | |
91 </outputs> | |
92 <help>NAME | |
93 ==== | |
94 | |
95 PSM Plotter | |
96 | |
97 DESCRIPTION | |
98 =========== | |
99 | |
100 Following the execution of the PSM Prep tool, this tool plots a subset | |
101 of those genomes as ciruclar tracks with protein-protein relationships | |
102 plotted as links between the boxes representing proteins. | |
103 | |
104 IMPORTANT PARAMETERS | |
105 -------------------- | |
106 | |
107 - ``user_ordering`` | |
108 | |
109 This parameter controls the order in which genomes are aligned and | |
110 then plotted. This MUST contain (comma/space) separated values | |
111 listing the order (outside to in) in which you want your genomes to | |
112 appear. In this field, type the name of each genome. The name can be | |
113 found on the first line of the file under "LOCUS NC\_00000001", where | |
114 NC\_00000001 would be the genome's name. | |
115 | |
116 - ``evalue``, ``dice`` | |
117 | |
118 Adjusting these parameters will affect which links are plotted. Links | |
119 are heatmapped into bins based on dice score as that is the easiest | |
120 measure to work with, and scales nicely from 0 to 100. For example, a | |
121 link with a dice score of 20-29 would be plotted as 20% black | |
122 (grey20), whereas a dice score of 90+ would be plotted as solid black | |
123 | |
124 - ``mismatch``, ``gap_penalty``, ``match`` | |
125 | |
126 These parameters control the Needleman-Wunsch Multiple Sequence | |
127 Alignment library's scoring scheme. Mismatch scores are generally | |
128 negative and discourage unrelated proteins from being plotted in a | |
129 line together. Match scores encourage related proteins to line up. | |
130 Gap penalty is set at zero as we generally prefer gaps to mismatches | |
131 in this tool; phage genomes are small and gaps are "cheap" to use, | |
132 whereas mismatches can sometimes give an incorrect impression of | |
133 relatedness. That said, how your plots look is completely up to you | |
134 and we encourage experimentation! | |
135 | |
136 - ``every_nth`` | |
137 | |
138 Every Nth gene in a genome will be plotted a slightly different | |
139 color. | |
140 | |
141 Why Can't I Control Colors? | |
142 --------------------------- | |
143 | |
144 :: | |
145 | |
146 Brewer colors compose Brewer palettes which have been manually defined by | |
147 Cynthia Brewer for their perceptual properties. | |
148 | |
149 http://circos.ca/tutorials/lessons/configuration/colors/ | |
150 | |
151 Color palette choice is very important to creating an attractive and | |
152 easy to read graphic. In the words of Dr. Krzywinski, `Color palettes | |
153 matter <http://mkweb.bcgsc.ca/jclub/biovis/brewer/colorpalettes.pdf>`__. | |
154 Humans selecting from an RGB/HSV color palette tend to make poor | |
155 choices, so we've removed the option in lieu of using the very | |
156 attractive `Brewer Palettes <http://colorbrewer2.org/>`__. Specifically, | |
157 I've selected the 8 class qualtitative "Accent" color set, which has | |
158 produced some very nice maps. If you would like the option of selecting | |
159 amongst the other 8-class qualitative color sets, please file a bug | |
160 report and let me know. | |
161 </help> | |
162 <tests/> | |
163 </tool> |