0
|
1 <tool id="gen_density_plots" name="Generate scatter plots" version="1.0">
|
|
2 <description>for any given markers in FCS file.</description>
|
|
3 <requirements>
|
|
4 <requirement type="package" version="3.3.0">r</requirement>
|
|
5 <requirement type="package" version="1.38.2">bioconductor-flowcore</requirement>
|
|
6 <requirement type="package" version="1.6.0">bioconductor-flowdensity</requirement>
|
|
7 </requirements>
|
|
8 <stdio>
|
|
9 <exit_code range="10" level="fatal" description="Please provide a comma separated list of channels to plot" />
|
|
10 <exit_code range="11" level="fatal" description="Please provide numeric values for the list of channels to plot" />
|
|
11 </stdio>
|
|
12 <command><![CDATA[
|
|
13 Rscript --slave --vanilla $__tool_directory__/getDensityPlots.R --args "${input}" "${channels}" "${outpng}" $outformat "${outpdf}"
|
|
14 ]]>
|
|
15 </command>
|
|
16 <inputs>
|
|
17 <param format="fcs" name="input" type="data" label="FCS file"/>
|
|
18 <param name="channels" type="text" label="Markers to plot:" value="i.e.:1,3,4" help="By default, will plot FSC vs SSC if the channels are found."/>
|
|
19 <param name="outformat" type="select" label="Output PDF?">
|
|
20 <option value="FALSE">No, thank you</option>
|
|
21 <option value="TRUE">Yes, please</option>
|
|
22 </param>
|
|
23 </inputs>
|
|
24 <outputs>
|
|
25 <data format="pdf" name="outpdf" label="Scatter Plots of ${channels} from ${input.name}">
|
|
26 <filter>outformat=="TRUE"</filter>
|
|
27 </data>
|
|
28 <data format="png" name="outpng" label="Scatter Plots of ${channels} from ${input.name}"/>
|
|
29 </outputs>
|
|
30 <tests>
|
|
31 <test>
|
|
32 <param name="input" value="testfcs1.fcs"/>
|
|
33 <param name="channels" value="1,3"/>
|
|
34 <param name="outformat" value="TRUE"/>
|
|
35 <output name="outpdf" file="graph.pdf" compare="sim_size"/>
|
|
36 <output name="outpng" file="graph.png" compare="sim_size"/>
|
|
37 </test>
|
|
38 <test>
|
|
39 <param name="input" value="testfcs1.fcs"/>
|
|
40 <param name="channels" value="i.e.:1,3,4"/>
|
|
41 <param name="outformat" value="FALSE"/>
|
|
42 <output name="outpng" file="graph2.png" compare="sim_size"/>
|
|
43 </test>
|
|
44 </tests>
|
|
45 <help><![CDATA[
|
|
46 This tool allows generation of density scatter plots using flowDensity.
|
|
47
|
|
48 -----
|
|
49
|
|
50 **Input files**
|
|
51
|
|
52 This tool takes valid FCS files as input.
|
|
53
|
|
54 **Output files**
|
|
55
|
|
56 This tool generates a scatter plot for each marker combination in a single png file. A pdf file can optionally be generated.
|
|
57
|
|
58 -----
|
|
59
|
|
60 **Example**
|
|
61
|
|
62 *Output*:
|
|
63
|
|
64 .. image:: static/images/densityplots.png
|
|
65 ]]>
|
|
66 </help>
|
|
67 <citations>
|
|
68 <citation type="doi">10.1093/bioinformatics/btu677</citation>
|
|
69 <citation type="doi">10.1186/1471-2105-10-106</citation>
|
|
70 </citations>
|
|
71 </tool>
|