comparison crossSampleOverview.xml @ 1:bca68066a957 draft

"planemo upload for repository https://github.com/ImmPortDB/immport-galaxy-tools/tree/master/flowtools/cs_overview commit 2afc7e52ba525635c05027c11f978bc76aa83e2d"
author azomics
date Wed, 20 May 2020 16:04:43 -0400
parents
children a64ece32a01a
comparison
equal deleted inserted replaced
0:8c17aa8032c2 1:bca68066a957
1 <tool id="cross_sample_overview" name="Generate overview information" version="1.1+galaxy0">
2 <description>of a multi-sample analysis.</description>
3 <requirements>
4 <requirement type="package" version="2.0.2">ig-flowtools</requirement>
5 </requirements>
6 <stdio>
7 <exit_code range="1" level="fatal" description="There are too many populations in the input files. The maximum number of populations is 40." />
8 <exit_code range="2" level="fatal" description="There are populations inconsistencies between provided inputs." />
9 </stdio>
10 <command><![CDATA[
11 mkdir templates &&
12 mkdir -p static/flowtools &&
13 mkdir -p static/images/flowtools &&
14 export FLOWTOOL='which crossSampleOverview.py' &&
15 FLOWTOOLDIR=\$(dirname $FLOWTOOL) &&
16 cp $FLOWTOOLDIR/../share/templates/* templates/ &&
17 cp -r $FLOWTOOLDIR/../share/static/flowtools/* static/flowtools/ &&
18 cp $FLOWTOOLDIR/../share/static/images/flowtools/* static/images/flowtools/ &&
19 crossSampleOverview.py -i '${input}' -I '${inputmfi}' -o '${html_file}' -m '${mfi}' -d '${html_file.files_path}' -t 'templates/'
20 #for $f in $cs_outputs
21 -s $f
22 #end for
23 ]]>
24 </command>
25 <inputs>
26 <param format="flowstat1" name="input" type="data" label="CrossSample Population Summary Table"/>
27 <param format="flowstat2" name="inputmfi" type="data" label="Centroids MFI Summary Table"/>
28 <param format="flowmfi" name="mfi" type="data" label="Centroids File from FLOCK"/>
29 <param format="flowclr" name="cs_outputs" type="data_collection" collection_type="list" label="Clustered flow files" help="output from a Cross Sample analysis or from mapping individual files to a FlowSOM reference tree."/>
30 </inputs>
31 <outputs>
32 <data format="html" name="html_file" label="Overview of ${input.name}">
33 </data>
34 </outputs>
35 <tests>
36 <test>
37 <param name="input" value="input.flowstat1"/>
38 <param name="inputmfi" value="input.flowstat2"/>
39 <param name="mfi" value="input.mfi"/>
40 <param name="cs_outputs">
41 <collection type="list">
42 <element name="input1.flowclr" value="input1.flowclr"/>
43 <element name="input2.flowclr" value="input2.flowclr"/>
44 <element name="input3.flowclr" value="input3.flowclr"/>
45 </collection>
46 </param>
47 <output name="html_file" file="out.html" compare="sim_size">
48 <extra_files type="file" name="csAllMFIs.tsv" value="csAllMFIs.tsv"/>
49 <extra_files type="file" name="csOverview.tsv" value="csOverview.tsv"/>
50 <extra_files type="file" name="csBoxplotData.json" value="csBoxplotData.json" compare="contains"/>
51 </output>
52 </test>
53 </tests>
54 <help><![CDATA[
55 This tool generates an overview of the flow analysis results.
56
57 -----
58
59 **Input**
60
61 Input files are tab-separated files containing counts of events in each population for each file compared to reference population patterns, MFI for each marker in each population for each file, and individual files used in the comparison. The output from a Cross Sample analysis as well as from mapping individual files to a FlowSOM reference tree are suitable files.
62 The Centroids file can be generated with the following Flow Analysis tool:
63
64 - Generate the centroids from a flow result file
65
66 .. class:: warningmark
67
68 The number of populations or clusters this tool can handle is limited to 40.
69
70 **Output**
71
72 The output is a page that allows visualization of the data.
73
74 .. class:: warningmark
75
76 *The output of this tool is interactive. However, comments or any other modifications made are not saved when exiting the view.*
77
78 -----
79
80 **Example**
81
82 *Input*
83
84 Clustered Flow Data - fluorescence intensities per marker and population ID per event::
85
86 Marker1 Marker2 Marker3 ... Population
87 33 47 11 ... 1
88 31 64 11 ... 6
89 21 62 99 ... 2
90 14 34 60 ... 7
91 ... ... ... ... ...
92
93
94 Population distribution table::
95
96 Filename SampleName Pop1 Pop2 Pop3 ...
97 File1 Biosample1 0.1 0.25 0.14 ...
98 File2 Biosample2 0.02 0.1 0.17 ...
99 File3 Biosample3 0.4 0.05 0.21 ...
100 File4 Biosample4 0.05 0.3 0.08 ...
101 ... ... ... ... ... ...
102
103 Centroids MFI Summary table::
104
105 Marker1 Marker2 Marker3 ... Population Percentage SampleName
106 154 885 24 ... 1 0.2 Biosample1
107 458 74 574 ... 2 0.3 Biosample1
108 3 210 86 ... 3 0.05 Biosample1
109 ... ... ... ... ... ... ...
110 140 921 19 ... 1 0.1 Biosample2
111 428 79 508 ... 2 0.25 Biosample2
112 9 225 90 ... 3 0.3 Biosample2
113 ... ... ... ... ... ... ...
114
115 Centroids file::
116
117 Population Marker1 Marker2 Marker3 ...
118 1 38 49 10 ...
119 2 21 63 100 ...
120 3 31 52 45 ...
121 4 11 78 25 ...
122 ... ... ... ... ...
123
124 *Output*
125
126 Summary of the population distribution:
127
128 The comment field of this table is editable, as well as the population names. The edited values are used to populate the legends of the other graphs. The columns are re-orderable. The 'col visibility' button allows to choose which columns to display. 'CSV', 'PDF' and 'Copy' respectively allow to download a comma-separated values file, a pdf version or to copy to your clipboard in a tab-separated format the current view of the table.
129
130 .. image:: ./static/images/flowtools/popdistrib.png
131
132 .. image:: ./static/images/flowtools/edit_popdistrib.png
133
134
135 Stacked plot of the population distribution in each sample:
136
137 The user can choose which populations to display, and whether to see the data as a bar plot or area plot. The graph displays the proportion of each population within the set of selected populations. The Plotly toolbar allows more control over the display of the graph. There is an option to save the plot as a png file.
138
139 .. image:: ./static/images/flowtools/stackedA.png
140
141 .. image:: ./static/images/flowtools/stackedB.png
142
143
144 Parallel coordinates representation of populations:
145
146 The user can reorder the populations, and choose which samples to display either by selecting them in the legend via checkboxes or by selecting them on the graph. Data selected for display is shown in the table below the graph. Mousing over a line in that table highlights the corresponding line on the graph. The 'col visibility' button allows to choose which columns to display. 'CSV', 'PDF' and 'Copy' respectively allow to download a comma-separated values file, a pdf version or to copy to your clipboard in a tab-separated format the current view of the table.
147
148 .. image:: ./static/images/flowtools/pcpop.png
149
150
151 Parallel coordinates representation of the data:
152
153 The user can reorder the markers, and choose which samples and/or populations to display either by selecting them in the legends via checkboxes or by selecting them on the graph. Data selected for display is shown in the table below the graph. Mousing over a line in that table highlights the corresponding line on the graph. The 'col visibility' button allows to choose which columns to display. 'CSV', 'PDF' and 'Copy' respectively allow to download a comma-separated values file, a pdf version or to copy to your clipboard in a tab-separated format the current view of the table.
154
155 .. image:: ./static/images/flowtools/pcmfi.png
156
157
158 Summary Statistics Boxplots:
159
160 The user can choose whether to group the boxplots per marker or per population. By default, the values displayed are the 25th, median and 75th percentiles. The whiskers represent 1.5 times the interquartile range. The MFI or the values can be displayed by checking the corresponding checkboxes. The number of markers that can be plotted simultaneously is limited to 5. The number of outliers per data point is limited to 100. If there are more than 100 outliers, they are downsampled randomly to a 100 and a warning message is displayed.
161
162 .. image:: ./static/images/flowtools/cs_bpt.png
163 ]]>
164 </help>
165 </tool>