comparison metacyto_histogram.xml @ 0:f5526d97056c draft default tip

"planemo upload for repository https://github.com/AstraZeneca-Omics/immport-galaxy-tools/tree/master/flowtools/metacyto_histogram commit cb978232e32b64f7b0ff3c1852e708361045d268"
author azomics
date Thu, 29 Jul 2021 22:15:11 +0000
parents
children
comparison
equal deleted inserted replaced
-1:000000000000 0:f5526d97056c
1 <tool id="metacyto_histogram" name="Generate histograms" version="1.0+galaxy0" profile="18.01">
2 <description>of MetaCyto's clustering results</description>
3 <requirements>
4 <requirement type="package" version="1.4.0">bioconductor-metacyto</requirement>
5 </requirements>
6 <stdio>
7 <exit_code range="1:9" />
8 <exit_code range="10" level="fatal" description="Please provide a valid input FCS file." />
9 <exit_code range="11" level="fatal" description="Please provide a valid input file for gate definitions." />
10 <exit_code range="12" level="fatal" description="Please provide a cluster definition" />
11 <exit_code range="13:" />
12 </stdio>
13 <command><![CDATA[
14 Rscript --slave --vanilla '$__tool_directory__/metacyto_histogram.R' '${input}' '${input.name}' 'metacyto_plots' '${unused}' '${outformat}'
15 #if $input_option.co == "F"
16 'F' '${input_option.gates}'
17 #else if $input_option.co == "L"
18 'L' '${input_option.first_def}'
19 #for $r in $input_option.cl_df
20 '${r.cluster_def}'
21 #end for
22 #end if
23 ]]>
24 </command>
25 <inputs>
26 <param format="fcs" name="input" type="data" label="FCS file"/>
27 <conditional name="input_option">
28 <param name="co" type="select" label="Clusters to plot">
29 <option value="F">from file</option>
30 <option value="L">manual input</option>
31 </param>
32 <when value="F">
33 <param format="metacyto_clr.txt" name="gates" type="data" label="List of cluster definition" help="One gate definition per line."/>
34 </when>
35 <when value="L">
36 <param name="first_def" type="text" label="Additional cluster definition:" help="i.e.:CD3+,CD4-,CD8+,CCR7+"/>
37 <repeat name="cl_df" title="Cluster:">
38 <param name="cluster_def" type="text" label="Additional cluster definition:" help="i.e.:CD3+,CD4-,CD8+,CCR7+"/>
39 </repeat>
40 </when>
41 </conditional>
42 <param name="outformat" type="select" label="Output Format" help="PDF will be larger files that may take some time to load.">
43 <option value="PNG" selected="true">PNG</option>
44 <option value="PDF">PDF</option>
45 </param>
46 </inputs>
47 <outputs>
48 <data format="txt" name="unused" label="List of clusters not found in ${input.name}"/>
49 <collection type="list" label="Histograms in ${input.name}, PNG format" name="output_png">
50 <discover_datasets pattern="(?P&lt;name&gt;.*)" directory="metacyto_plots" format="png" />
51 <filter>outformat=="PNG"</filter>
52 </collection>
53 <collection type="list" label="Histograms in ${input.name}, PDF format" name="output_pdf">
54 <discover_datasets pattern="(?P&lt;name&gt;.*)" directory="metacyto_plots" format="pdf" />
55 <filter>outformat=="PDF"</filter>
56 </collection>
57 </outputs>
58 <tests>
59 <test>
60 <param name="input" value="Group1.fcs"/>
61 <param name="co" value="L"/>
62 <param name="first_def" value="CD3+,CD4-"/>
63 <param name="outformat" value="PNG"/>
64 <output name="unused">
65 <assert_contents>
66 <has_n_lines n="1"/>
67 </assert_contents>
68 </output>
69 <output_collection name="output_png">
70 <element name="Group1_CD3+CD4-_plot.png" ftype="png">
71 <assert_contents>
72 <has_size value="105600" delta="30000"/>
73 </assert_contents>
74 </element>
75 </output_collection>
76 </test>
77 </tests>
78 <help><![CDATA[
79 Histograms of the distribution of events after clustering with MetaCyto for provided gating definitions
80 -------------------------------------------------------------------------------------------------------
81
82 **Input files**
83
84 This tool requires a valid FCS file and a list of clusters as input.
85
86 **Output**
87
88 This tool generates plots to show the distribution of cells in each cluster definition. The gray histograms show the distribution of markers in all cells. The red histograms show the distribution of markers in the identified cell subset.
89
90 **Example**
91
92 *Input* - Cluster List::
93
94 Marker1+|Marker3-
95 Marker1+|Marker2+|Marker3-
96 ...
97
98 *Output* - Unused Cluster List::
99
100 Marker1+|Marker3-
101 Marker1-|Marker2+|Marker3-
102 ...
103
104 *Graphical output*
105
106 .. image:: images/meta_histo.png
107 ]]>
108 </help>
109 </tool>