comparison FCSGateTrans.xml @ 1:c28c2e680bf5 draft

"planemo upload for repository https://github.com/ImmPortDB/immport-galaxy-tools/tree/master/flowtools/fcs_gate_trans commit f34ed6ca8e77b9792a270890262c2936b13e30b9"
author azomics
date Mon, 22 Jun 2020 20:30:34 -0400
parents
children 66a54e77aa33
comparison
equal deleted inserted replaced
0:78b8ab344edd 1:c28c2e680bf5
1 <tool id="fcs_gate_trans_convert" name="Transform FCS data" version="1.2+galaxy0">
2 <description>with optional compensation and automated gating with flowDensity.</description>
3 <requirements>
4 <requirement type="package" version="1.10.0">bioconductor-flowdensity</requirement>
5 </requirements>
6 <stdio>
7 <exit_code range="2:" level="fatal" description="See stderr for more details." />
8 </stdio>
9 <command><![CDATA[
10 Rscript $__tool_directory__/FCSGateTrans.R '${input}' '${output}' $comp '${outformat}' '${graph}' '${report}' '${transform.trans_method}'
11 #if $transform.trans_method == "arcsinh"
12 $transform.scaling_factor
13 #else if $transform.trans_method == "logicle"
14 $transform.w $transform.t $transform.m
15 #end if
16 ]]>
17 </command>
18 <inputs>
19 <param format="fcs" name="input" type="data" label="FCS file"/>
20 <param name="comp" type="boolean" checked="false" truevalue="TRUE" falsevalue="FALSE" label="Compensate?"/>
21 <conditional name="transform">
22 <param name="trans_method" type="select" label="Transformation using:" help="by default, FCSTrans">
23 <option value="fcstrans">FCSTrans</option>
24 <option value="logicle_auto">logicle, automatic estimation of parameters</option>
25 <option value="logicle">logicle</option>
26 <option value="arcsinh">arcsinh</option>
27 <option value="None">no transformation please.</option>
28 </param>
29 <when value="arcsinh">
30 <param name="scaling_factor" type="integer" min="1" max="200" value="150" label="Scaling factor b for arcsinh transform:" help="The default value is 150 for standard FCM data. The recommended value for cyTOF data is 5.">
31 </param>
32 </when>
33 <when value="logicle">
34 <param name="w" type="float" value="0.5" label="Linearization width w for logicle transform:" help="w should be positive and determines the slope of transformation at zero. The default value is 0.5.">
35 </param>
36 <param name="t" type="integer" value="262144" label="Top of the scale data value t for logicle transform:" help=" t should be greater than zero. Recommended values are 10000 for common 4 decade data or 262144 for a 18 bit data range. The default value is 262144.">
37 </param>
38 <param name="m" type="float" value="4.5" label="Full width of the transformed display m for logicle transform:" help="m is expressed in asymptotic decades and should be positive. The default value is 4.5 .">
39 </param>
40 </when>
41 </conditional>
42 <param name="gate" type="select" label="Automatically gate debris?">
43 <option value="FALSE">No, thank you</option>
44 <option value="TRUE">Yes, please</option>
45 </param>
46 <param name="gate" type="boolean" checked="false" truevalue="TRUE" falsevalue="FALSE" label="Automatically gate debris?"/>
47 <param name="outformat" type="select" label="Output Format">
48 <option value="flowtext">Text File</option>
49 <option value="FCS">FCS 3.0</option>
50 <option value="flowFrame">R Data, flowFrame</option>
51 </param>
52 </inputs>
53 <outputs>
54 <data format="flowtext" name="output" label="${outformat} FCSGateTrans output with ${transform.trans_method} on ${input.name}">
55 <change_format>
56 <when input="outformat" value="FCS" format="fcs" />
57 <when input="outformat" value="flowFrame" format="flowframe" />
58 </change_format>
59 </data>
60 <data format="png" name="graph" label="Graphs of automated gating on ${input.name} with ${transform.trans_method}">
61 <filter>(gate)</filter>
62 </data>
63 <data format="txt" name="report" label="Report of automated gating on ${input.name} with ${transform.trans_method}">
64 <filter>(gate)</filter>
65 </data>
66 </outputs>
67 <tests>
68 <test>
69 <param name="input" value="testfcs1.fcs"/>
70 <param name="comp" value="TRUE"/>
71 <param name="gate" value="FALSE"/>
72 <param name="outformat" value="FCS"/>
73 <param name="trans_method" value="fcstrans"/>
74 <output name="output" file="comp_gated.fcs" compare="sim_size"/>
75 </test>
76 <test>
77 <param name="input" value="testfcs1.fcs"/>
78 <param name="comp" value="TRUE"/>
79 <param name="gate" value="FALSE"/>
80 <param name="outformat" value="flowFrame"/>
81 <param name="trans_method" value="fcstrans"/>
82 <output name="output" file="comp_gated.flowframe" compare="sim_size"/>
83 </test>
84 </tests>
85 <help><![CDATA[
86 This tool offers data transformation options, optional automated gating of debris using flowDensity and conversion of FCS files to text.
87
88 -----
89
90 **Input files**
91
92 This tool uses FCS files as input and files are processed serially. Users choose to automatically gate cellular debris, and/or compensate the data.
93
94 **Output files**
95
96 Output is tab-separated text containing transformed fluorescence intensity values for each marker.
97 If the option is selected, a FCS file (format FCS3.0) is generated.
98
99 **Gating output**
100
101 Automatically gated output includes a summary of data pre- and post-gating as well as density scatter plots pre- and post- gating for each marker pair.
102
103 -----
104
105 Compensation will be implemented according to the spillover matrix included in the FCS files (if available).
106
107 -----
108
109 **Transformation**
110
111 This tools currently supports 3 transformation algorithms: FCSTrans, arcsinh and logicle. The latter two are implemented using flowCore, FCSTrans is documented in the paper cited below. Transformation algorithms are NOT applied to FSC and SSC channels.
112
113 -----
114
115 **Automated Gating**
116
117 Automated gating is implemented with flowDensity. Cellular debris removal uses gate coordinates calculated based on the density of the forward scatter channel only. The calculated gate is vertical and located at the largest value of either the 0.1 quantile of the FSC density or the lowest density between the first and second density peaks. Cells smaller than the threshold are removed.
118
119 .. class:: warningmark
120
121 Users should verify whether data benefit from being gated. We recommend evaluating the number of events and scatter plots pre- and post-gating.
122
123 -----
124
125 **Example**
126
127 *Output text file*::
128
129 Forward Scatter Side Scatter Marker1 Marker2 Marker3 Marker4 ...
130 449 157 551 129 169 292 ...
131 894 1023 199 277 320 227 ...
132 262 73 437 69 0 146 ...
133 340 115 509 268 0 74 ...
134 ... ... ... ... ... ... ...
135
136
137 *Gating summary*::
138
139 =========================
140 == BEFORE GATING ==
141 =========================
142 events parameters
143 203584 13
144 FSC-A FSC-H SSC-A SSC-H APC-A APC-H7-A FITC-A PerCP-Cy5-5-A V450-A V500-A PE-A PE-Cy7-A Time
145 Min. 0 78 0 0.0 0 0.0 0 0 0 0 0.0 0 0
146 1st Qu. 869 769 544 514.0 940 0.0 1023 826 978 1104 358.8 913 4182
147 Median 1234 1081 754 704.0 1750 31.0 1247 1614 1971 1505 1612.0 1791 8392
148 Mean 1304 1108 1002 863.6 1629 812.8 1329 1597 1694 1765 1376.0 1813 8536
149 3rd Qu. 1675 1474 1240 1087.0 2326 1573.0 1629 2565 2326 2640 2261.0 2782 12760
150 Max. 4095 4061 4095 4012.0 4096 4086.0 4094 4022 4091 4096 4093.0 4096 17740
151
152 =========================
153 == AFTER GATING ==
154 =========================
155 events parameters
156 171547 13
157 FSC-A FSC-H SSC-A SSC-H APC-A APC-H7-A FITC-A PerCP-Cy5-5-A V450-A V500-A PE-A PE-Cy7-A Time
158 Min. 403 219 1.0 4.0 0 0.0 0 0 0 0 0 0 0
159 1st Qu. 949 849 599.0 565.0 979 0.0 1063 943 1203 1119 444 1060 4182
160 Median 1348 1170 782.0 730.0 1809 0.0 1258 1717 2082 1493 1785 1883 8358
161 Mean 1353 1177 989.2 885.9 1642 779.4 1330 1678 1778 1753 1458 1873 8504
162 3rd Qu. 1670 1475 1204.0 1076.0 2322 1559.0 1591 2623 2345 2630 2289 2808 12700
163 Max. 2953 2406 4055.0 3329.0 4069 4080.0 3498 3868 3612 4076 4093 3764 17730
164
165 *Gating plots*:
166
167 .. image:: ./static/images/flowtools/flowdensity.png
168 ]]>
169 </help>
170 <citations>
171 <citation type="doi">10.1002/cyto.a.22037</citation>
172 <citation type="doi">10.1093/bioinformatics/btu677</citation>
173 <citation type="doi">10.1186/1471-2105-10-106</citation>
174 </citations>
175 </tool>