Mercurial > repos > iuc > rpy_statistics_collection
comparison histogram.xml @ 1:2e7bc1bb2dbe draft default tip
Uploaded
| author | iuc |
|---|---|
| date | Fri, 09 Jan 2015 12:56:07 -0500 |
| parents | ffcdde989859 |
| children |
comparison
equal
deleted
inserted
replaced
| 0:ffcdde989859 | 1:2e7bc1bb2dbe |
|---|---|
| 2 <description>of a numeric column</description> | 2 <description>of a numeric column</description> |
| 3 <expand macro="requirements" /> | 3 <expand macro="requirements" /> |
| 4 <macros> | 4 <macros> |
| 5 <import>statistic_tools_macros.xml</import> | 5 <import>statistic_tools_macros.xml</import> |
| 6 </macros> | 6 </macros> |
| 7 <command interpreter="python">histogram.py $input $out_file1 $numerical_column "$title" "$xlab" $breaks $density $frequency</command> | 7 <command interpreter="python"> |
| 8 <inputs> | 8 <![CDATA[ |
| 9 <param name="input" type="data" format="tabular" label="Dataset" help="Dataset missing? See TIP below"/> | 9 histogram.py |
| 10 <param name="numerical_column" type="data_column" data_ref="input" numerical="True" label="Numerical column for x axis" /> | 10 $input |
| 11 <param name="breaks" type="integer" size="4" value="0" label="Number of breaks (bars)"/> | 11 $out_file1 |
| 12 <param name="title" type="text" size="30" value="Histogram" label="Plot title"/> | 12 $numerical_column |
| 13 <param name="xlab" type="text" size="30" value="V1" label="Label for x axis"/> | 13 "$title" |
| 14 <param name="density" type="boolean" checked="yes" label="Include smoothed density"/> | 14 "$xlab" |
| 15 <param name="frequency" type="boolean" checked="no" label="Plot as frequency (counts)"/> | 15 $breaks |
| 16 </inputs> | 16 $density |
| 17 <outputs> | 17 $frequency |
| 18 <data format="pdf" name="out_file1" /> | 18 ]]> |
| 19 </outputs> | 19 </command> |
| 20 <tests> | 20 <inputs> |
| 21 <test> | 21 <param name="input" type="data" format="tabular" label="Dataset" help="Dataset missing? See TIP below"/> |
| 22 <param name="input" value="histogram_in1.tabular" ftype="tabular"/> | 22 <param name="numerical_column" type="data_column" data_ref="input" numerical="True" label="Numerical column for x axis" /> |
| 23 <param name="numerical_column" value="2"/> | 23 <param name="breaks" type="integer" size="4" value="0" label="Number of breaks (bars)"/> |
| 24 <param name="breaks" value="0"/> | 24 <param name="title" type="text" size="30" value="Histogram" label="Plot title"/> |
| 25 <param name="title" value="Histogram"/> | 25 <param name="xlab" type="text" size="30" value="V1" label="Label for x axis"/> |
| 26 <param name="xlab" value="V1"/> | 26 <param name="density" type="boolean" checked="yes" label="Include smoothed density"/> |
| 27 <param name="density" value="true"/> | 27 <param name="frequency" type="boolean" checked="no" label="Plot as frequency (counts)"/> |
| 28 <param name="frequency" value="false"/> | 28 </inputs> |
| 29 <output name="out_file1" lines_diff="10" file="histogram_out1.pdf"/> | 29 <outputs> |
| 30 </test> | 30 <data format="pdf" name="out_file1" /> |
| 31 </tests> | 31 </outputs> |
| 32 <tests> | |
| 33 <test> | |
| 34 <param name="input" value="histogram_in1.tabular" ftype="tabular"/> | |
| 35 <param name="numerical_column" value="2"/> | |
| 36 <param name="breaks" value="0"/> | |
| 37 <param name="title" value="Histogram"/> | |
| 38 <param name="xlab" value="V1"/> | |
| 39 <param name="density" value="true"/> | |
| 40 <param name="frequency" value="false"/> | |
| 41 <output name="out_file1" lines_diff="10" file="histogram_out1.pdf"/> | |
| 42 </test> | |
| 43 </tests> | |
| 32 <help> | 44 <help> |
| 45 <![CDATA[ | |
| 33 | 46 |
| 34 .. class:: infomark | 47 .. class:: infomark |
| 35 | 48 |
| 36 **TIP:** To remove comment lines that do not begin with a *#* character, use *Text Manipulation->Remove beginning* | 49 **TIP:** To remove comment lines that do not begin with a *#* character, use *Text Manipulation->Remove beginning* |
| 37 | 50 |
| 38 .. class:: infomark | 51 .. class:: infomark |
| 39 | 52 |
| 40 **TIP:** If your data is not TAB delimited, use *Text Manipulation->Convert* | 53 **TIP:** If your data is not TAB delimited, use *Text Manipulation->Convert* |
| 41 | 54 |
| 42 ----- | 55 ----- |
| 43 | 56 |
| 44 **Syntax** | 57 **Syntax** |
| 45 | 58 |
| 65 5 58 3.2 | 78 5 58 3.2 |
| 66 6 60 3.1 | 79 6 60 3.1 |
| 67 7 67 3.8 | 80 7 67 3.8 |
| 68 8 68 4.1 | 81 8 68 4.1 |
| 69 9 71 4.3 | 82 9 71 4.3 |
| 70 10 69 3.7 | 83 10 69 3.7 |
| 71 | 84 |
| 72 - Create a histogram on column 2 of the above dataset. | 85 - Create a histogram on column 2 of the above dataset. |
| 73 | 86 |
| 74 .. image:: $PATH_TO_IMAGES/histogram2.png | 87 .. image:: $PATH_TO_IMAGES/histogram2.png |
| 75 | 88 |
| 76 </help> | 89 ]]> |
| 90 </help> | |
| 77 </tool> | 91 </tool> |
