comparison FlowSOMCompare.xml @ 0:bd35f3b66a1e draft

"planemo upload for repository https://github.com/ImmPortDB/immport-galaxy-tools/tree/master/flowtools/flowsom_compare commit a1755b91905a2a95ebb0d6dd4a2b3d42c7e19f05"
author azomics
date Mon, 22 Jun 2020 17:54:03 -0400
parents
children 33b8673272cf
comparison
equal deleted inserted replaced
-1:000000000000 0:bd35f3b66a1e
1 <tool id="flowsom_compare" name="Compare Samples" version="1.0+galaxy1">
2 <description>using a FlowSOM tree</description>
3 <requirements>
4 <requirement type="package" version="1.18.0">bioconductor-flowsom</requirement>
5 </requirements>
6 <stdio>
7 <exit_code range="10" level="fatal" description="Please provide valid input FCS files." />
8 <exit_code range="11" level="fatal" description="Please provide a valid reference SOM tree." />
9 <exit_code range="12" level="fatal" description="There are inconsistencies in markers and/or channels between FCS files." />
10 <exit_code range="13" level="fatal" description="FCS file and reference tree markers and/or channels are inconsistent." />
11 <exit_code range="14" level="fatal" description="Some FCS files are used more than once." />
12 </stdio>
13 <command><![CDATA[
14 Rscript $__tool_directory__/FlowSOMCompare.R '${reftree}' '${groups}' '${plot}' '${thresh}'
15 #if $count == "TRUE"
16 'counts' '${count_out}'
17 #end if
18 #if $mean == "TRUE"
19 'means' '${mean_out}'
20 #end if
21 #if $med == "TRUE"
22 'medians' '${med_out}'
23 #end if
24 #if $prctg == "TRUE"
25 'pctgs' '${p_out}'
26 #end if
27 '${name1}'
28 #for $f in $group1
29 '${f}' '${f.name}'
30 #end for
31 'DONE' '${name2}'
32 #for $ff in $group2
33 '${ff}' '${ff.name}'
34 #end for
35 ]]>
36 </command>
37 <inputs>
38 <param format="fsom" name="reftree" type="data" label="FlowSOM Reference Tree"/>
39 <param name="name1" value="Group 1" type="text" label="Label for first group of files" help="This label will be used in the output tables."/>
40 <param format="fcs" name="group1" type="data_collection" collection_type="list" label="FCS files Collection"/>
41 <param name="name2" value="Group 2" type="text" label="Label for second group of files" help="This label will be used in the output tables."/>
42 <param format="fcs" name="group2" type="data_collection" collection_type="list" label="FCS files Collection"/>
43 <param name="thresh" type="float" value="0.05" label="Wilcox-test threshold for differential" help="By default, the threshold is set to 0.05" />
44 <param name="count" type="boolean" label="Output counts of events in clusters for each file?" checked="false" truevalue="TRUE" falsevalue="FALSE" />
45 <param name="prctg" type="boolean" label="Output proportions of events in clusters for each file?" checked="false" truevalue="TRUE" falsevalue="FALSE" />
46 <param name="mean" type="boolean" label="Output means of proportions for each group?" checked="false" truevalue="TRUE" falsevalue="FALSE" />
47 <param name="med" type="boolean" label="Output medians of proportions for each group?" checked="false" truevalue="TRUE" falsevalue="FALSE" />
48 </inputs>
49 <outputs>
50 <data format="tabular" name="groups" label="Comparison of '${name1}' and '${name2}' to ${reftree.name}"/>
51 <data format="pdf" name="plot" label="Plot of comparison of '${name1}' and '${name2}' to ${reftree.name}"/>
52 <data format="tabular" name="count_out" label="Counts of events in samples of '${name1}' and '${name2}' in comparison to ${reftree.name}">
53 <filter>(count)</filter>
54 </data>
55 <data format="tabular" name="med_out" label="Median of proportions of event in '${name1}' and '${name2}' in comparison to ${reftree.name}">
56 <filter>(med)</filter>
57 </data>
58 <data format="tabular" name="mean_out" label="Means of proportions of events in '${name1}' and '${name2}' in comparison to ${reftree.name}">
59 <filter>(mean)</filter>
60 </data>
61 <data format="tabular" name="p_out" label="Proportions of events in samples of '${name1}' and '${name2}' in comparison to ${reftree.name}">
62 <filter>(prctg)</filter>
63 </data>
64 </outputs>
65 <tests>
66 <test>
67 <param name="reftree" value="reftree.fsom"/>
68 <param name="name1" value="Group 1"/>
69 <param name="thresh" value="0.05"/>
70 <param name="group1">
71 <collection type="list">
72 <element name="input1.fcs" value="input1.fcs"/>
73 </collection>
74 </param>
75 <param name="name2" value="Group 2"/>
76 <param name="group2">
77 <collection type="list">
78 <element name="input2.fcs" value="input2.fcs"/>
79 <element name="input3.fcs" value="input3.fcs"/>
80 </collection>
81 </param>
82 <param name="count" value="FALSE"/>
83 <param name="mean" value="FALSE"/>
84 <param name="med" value="FALSE"/>
85 <param name="prctg" value="FALSE"/>
86 <output name="groups" file="out1.tabular" compare="sim_size"/>
87 <output name="plot" file="out1.pdf" compare="sim_size" delta="100000"/>
88 </test>
89 <test>
90 <param name="reftree" value="reftree.fsom"/>
91 <param name="name1" value="Group 1"/>
92 <param name="thresh" value="0.05"/>
93 <param name="group1">
94 <collection type="list">
95 <element name="input1.fcs" value="input1.fcs"/>
96 </collection>
97 </param>
98 <param name="name2" value="Group 2"/>
99 <param name="group2">
100 <collection type="list">
101 <element name="input2.fcs" value="input2.fcs"/>
102 <element name="input3.fcs" value="input3.fcs"/>
103 </collection>
104 </param>
105 <param name="count" value="TRUE"/>
106 <param name="mean" value="TRUE"/>
107 <param name="med" value="TRUE"/>
108 <param name="prctg" value="TRUE"/>
109 <output name="groups" file="out2.tabular" compare="sim_size"/>
110 <output name="plot" file="out2.pdf" compare="sim_size" delta="100000"/>
111 <output name="count_out" file="count.tabular" compare="sim_size"/>
112 <output name="mean_out" file="mean.tabular" compare="sim_size"/>
113 <output name="med_out" file="median.tabular" compare="sim_size"/>
114 <output name="p_out" file="prop.tabular" compare="sim_size"/>
115 </test>
116 </tests>
117 <help><![CDATA[
118 Compare sample
119 -------------------
120
121 This tool uses FlowSOM to compare two or more groups of files to a reference FlowSOM tree.
122
123 **Input**
124
125 This tool requires a reference FlowSOM tree, as well as two dataset collections of FCS files. Each group is compared to the reference tree. The statistical differential threshold is based on a Wilcox-test, with a p-value of 0.05 by default.
126
127 .. class:: infomark
128
129 If there is only one group to compare to the tree, the first set of FCS files should be the one used to generate the reference tree.
130
131 **Output**
132
133 This tool generates a table with groups attribution to each FlowSOM node, as well as a plot per comparison. Tables of counts, mean, median, proportion and normalized mean per node and files or groups are optionally produced.
134
135 -----
136
137 **Example**
138
139 *Output* - Node Table::
140
141 Node Group1-Group2
142 1 group1
143 2 --
144 3 group2
145 4 group1
146 ... ...
147
148 *Output* - Counts of events in file per node Table::
149
150 Filename filename1 filename2 filename3 filename4 ...
151 Group group1 group1 group2 group2 ...
152 1 17 2230 18 5054 ...
153 2 760 9 249 178 ...
154 3 155 9 1337 4 ...
155 4 53 2 1754 0 ...
156 5 42 1739 140 1320 ...
157 ... ... ... ... ... ...
158
159 *Output* - Proportion of events in file per node Table::
160
161 Filename filename1 filename2 filename3 filename4 ...
162 Group group1 group1 group2 group2 ...
163 1 0.0002528 0.0346386 0.0003068 0.0905507 ...
164 2 0.0113029 0.0001397 0.0042441 0.0031891 ...
165 3 0.0023052 0.0001397 0.0227888 7.1666606 ...
166 4 0.0007882 3.1066030 0.0298965 0.00017 ...
167 5 0.0006246 0.0270119 0.0023862 0.2365714 ...
168 ... ... ... ... ... ...
169
170 *Output* - Means of proportions of events in group per node Table::
171
172 Nodes group1 group2
173 1 0.00025 0.01747
174 2 0.01130 0.00219
175 3 0.00230 0.01146
176 4 0.00078 0.01496
177 5 0.00062 0.01469
178 ... ... ...
179
180 *Output* - Medians of proportions of events in group per node Table::
181
182 Nodes group1 group2
183 1 0.00025 0.01747
184 2 0.01130 0.00219
185 3 0.00230 0.01146
186 4 0.00078 0.01496
187 5 0.00062 0.01469
188 ... ... ...
189
190 ]]>
191 </help>
192 <citations>
193 <citation type="doi">10.1002/cyto.a.22625</citation>
194 </citations>
195 </tool>