Files
galaxy/tools/plotting/scatterplot.xml
T

60 lines
1.9 KiB
XML

<tool id="scatterplot_rpy" name="Scatterplot">
<description>of two numeric columns</description>
<command interpreter="python">scatterplot.py $input $out_file1 $col1 $col2 "$title" "$xlab" "$ylab"</command>
<inputs>
<page>
<param name="input" format="tabular" type="data" label="Dataset" help="Query missing? See TIP below"/>
</page>
<page>
<param name="col1" type="select" label="Column for x axis" dynamic_options="get_columns( input )" />
<param name="col2" type="select" label="Column for y axis" dynamic_options="get_columns( input )" />
<param name="title" size="30" type="text" value="Scatterplot" label="Plot title"/>
<param name="xlab" size="30" type="text" value="V1" label="Label for x axis"/>
<param name="ylab" size="30" type="text" value="V2" label="Label for y axis"/>
</page>
</inputs>
<outputs>
<data format="pdf" name="out_file1" />
</outputs>
<help>
.. class:: infomark
**TIP:** If your data is not TAB delimited, use *Edit Queries-&gt;Convert characters*
-----
**Syntax**
This tool creates a simple scatter plot between two variables containing numeric values of a selected query.
- All invalid, blank and comment lines in the query are skipped. The number of skipped lines is displayed in the resulting history item.
- **Plot title** The scatterplot title
- **Label for x axis** and **Label for y axis** The labels for x and y axis of the scatterplot.
-----
**Example**
- Input file::
1 68 4.1
2 71 4.6
3 62 3.8
4 75 4.4
5 58 3.2
6 60 3.1
7 67 3.8
8 68 4.1
9 71 4.3
10 69 3.7
- Create a simple scatterplot between the variables in column 2 and column 3 of the above dataset.
.. image:: ../static/images/scatterplot.png
</help>
<code file="scatterplot_code.py" />
</tool>