annotate plot_corr.xml @ 0:0cee38fb62af draft

planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/plot_correlation_matrix commit 8451e17775c0ffcd7fa63ef65081f442bef91496
author mvdbeek
date Fri, 27 Apr 2018 09:48:24 -0400
parents
children
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
0
0cee38fb62af planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/plot_correlation_matrix commit 8451e17775c0ffcd7fa63ef65081f442bef91496
mvdbeek
parents:
diff changeset
1 <tool id="plot_correlation" name="Plot correlations" version="0.1.3">
0cee38fb62af planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/plot_correlation_matrix commit 8451e17775c0ffcd7fa63ef65081f442bef91496
mvdbeek
parents:
diff changeset
2 <description>for multiple samples</description>
0cee38fb62af planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/plot_correlation_matrix commit 8451e17775c0ffcd7fa63ef65081f442bef91496
mvdbeek
parents:
diff changeset
3 <requirements>
0cee38fb62af planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/plot_correlation_matrix commit 8451e17775c0ffcd7fa63ef65081f442bef91496
mvdbeek
parents:
diff changeset
4 <requirement type="package" version="0.8.1">seaborn</requirement>
0cee38fb62af planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/plot_correlation_matrix commit 8451e17775c0ffcd7fa63ef65081f442bef91496
mvdbeek
parents:
diff changeset
5 <requirement type="package" version="6.7">click</requirement>
0cee38fb62af planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/plot_correlation_matrix commit 8451e17775c0ffcd7fa63ef65081f442bef91496
mvdbeek
parents:
diff changeset
6 </requirements>
0cee38fb62af planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/plot_correlation_matrix commit 8451e17775c0ffcd7fa63ef65081f442bef91496
mvdbeek
parents:
diff changeset
7 <command detect_errors="exit_code"><![CDATA[
0cee38fb62af planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/plot_correlation_matrix commit 8451e17775c0ffcd7fa63ef65081f442bef91496
mvdbeek
parents:
diff changeset
8 python '$__tool_directory__/plot_corr.py'
0cee38fb62af planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/plot_correlation_matrix commit 8451e17775c0ffcd7fa63ef65081f442bef91496
mvdbeek
parents:
diff changeset
9 #echo "".join(["'%s' " % f for f in $input_files])
0cee38fb62af planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/plot_correlation_matrix commit 8451e17775c0ffcd7fa63ef65081f442bef91496
mvdbeek
parents:
diff changeset
10 -c $c
0cee38fb62af planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/plot_correlation_matrix commit 8451e17775c0ffcd7fa63ef65081f442bef91496
mvdbeek
parents:
diff changeset
11 --labels '$labels'
0cee38fb62af planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/plot_correlation_matrix commit 8451e17775c0ffcd7fa63ef65081f442bef91496
mvdbeek
parents:
diff changeset
12 #if $plot_type != "None"
0cee38fb62af planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/plot_correlation_matrix commit 8451e17775c0ffcd7fa63ef65081f442bef91496
mvdbeek
parents:
diff changeset
13 --plot_path output.$plot_type
0cee38fb62af planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/plot_correlation_matrix commit 8451e17775c0ffcd7fa63ef65081f442bef91496
mvdbeek
parents:
diff changeset
14 #end if
0cee38fb62af planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/plot_correlation_matrix commit 8451e17775c0ffcd7fa63ef65081f442bef91496
mvdbeek
parents:
diff changeset
15 --correlation_matrix_path $tab_output
0cee38fb62af planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/plot_correlation_matrix commit 8451e17775c0ffcd7fa63ef65081f442bef91496
mvdbeek
parents:
diff changeset
16 --method $method
0cee38fb62af planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/plot_correlation_matrix commit 8451e17775c0ffcd7fa63ef65081f442bef91496
mvdbeek
parents:
diff changeset
17 --skiprows $skiprows
0cee38fb62af planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/plot_correlation_matrix commit 8451e17775c0ffcd7fa63ef65081f442bef91496
mvdbeek
parents:
diff changeset
18 #if $input_files[0].ext == 'csv'
0cee38fb62af planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/plot_correlation_matrix commit 8451e17775c0ffcd7fa63ef65081f442bef91496
mvdbeek
parents:
diff changeset
19 --sep ","
0cee38fb62af planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/plot_correlation_matrix commit 8451e17775c0ffcd7fa63ef65081f442bef91496
mvdbeek
parents:
diff changeset
20 #end if
0cee38fb62af planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/plot_correlation_matrix commit 8451e17775c0ffcd7fa63ef65081f442bef91496
mvdbeek
parents:
diff changeset
21 #if $plot_type != "None"
0cee38fb62af planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/plot_correlation_matrix commit 8451e17775c0ffcd7fa63ef65081f442bef91496
mvdbeek
parents:
diff changeset
22 && mv output.$plot_type plot
0cee38fb62af planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/plot_correlation_matrix commit 8451e17775c0ffcd7fa63ef65081f442bef91496
mvdbeek
parents:
diff changeset
23 #end if
0cee38fb62af planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/plot_correlation_matrix commit 8451e17775c0ffcd7fa63ef65081f442bef91496
mvdbeek
parents:
diff changeset
24 ]]></command>
0cee38fb62af planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/plot_correlation_matrix commit 8451e17775c0ffcd7fa63ef65081f442bef91496
mvdbeek
parents:
diff changeset
25 <configfiles>
0cee38fb62af planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/plot_correlation_matrix commit 8451e17775c0ffcd7fa63ef65081f442bef91496
mvdbeek
parents:
diff changeset
26 <configfile name="labels">#for f in $input_files
0cee38fb62af planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/plot_correlation_matrix commit 8451e17775c0ffcd7fa63ef65081f442bef91496
mvdbeek
parents:
diff changeset
27 $f.element_identifier
0cee38fb62af planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/plot_correlation_matrix commit 8451e17775c0ffcd7fa63ef65081f442bef91496
mvdbeek
parents:
diff changeset
28 #end for</configfile>
0cee38fb62af planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/plot_correlation_matrix commit 8451e17775c0ffcd7fa63ef65081f442bef91496
mvdbeek
parents:
diff changeset
29 </configfiles>
0cee38fb62af planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/plot_correlation_matrix commit 8451e17775c0ffcd7fa63ef65081f442bef91496
mvdbeek
parents:
diff changeset
30 <inputs>
0cee38fb62af planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/plot_correlation_matrix commit 8451e17775c0ffcd7fa63ef65081f442bef91496
mvdbeek
parents:
diff changeset
31 <param name="input_files" type="data" multiple="true" format="tabular,csv" label="Select the files for which to calculate the correlation"/>
0cee38fb62af planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/plot_correlation_matrix commit 8451e17775c0ffcd7fa63ef65081f442bef91496
mvdbeek
parents:
diff changeset
32 <param argument="-c" type="data_column" data_ref="input_files" value="1" label="Select the numeric column to use"/>
0cee38fb62af planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/plot_correlation_matrix commit 8451e17775c0ffcd7fa63ef65081f442bef91496
mvdbeek
parents:
diff changeset
33 <param argument="--skiprows" type="integer" min="0" value="0" label="Skip the first N rows" help="Make sure that all values are numeric"/>
0cee38fb62af planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/plot_correlation_matrix commit 8451e17775c0ffcd7fa63ef65081f442bef91496
mvdbeek
parents:
diff changeset
34 <param argument="--plot_type" type="select" label="Select the type of plot to produce">
0cee38fb62af planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/plot_correlation_matrix commit 8451e17775c0ffcd7fa63ef65081f442bef91496
mvdbeek
parents:
diff changeset
35 <option value="pdf">PDF</option>
0cee38fb62af planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/plot_correlation_matrix commit 8451e17775c0ffcd7fa63ef65081f442bef91496
mvdbeek
parents:
diff changeset
36 <option value="png">PNG</option>
0cee38fb62af planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/plot_correlation_matrix commit 8451e17775c0ffcd7fa63ef65081f442bef91496
mvdbeek
parents:
diff changeset
37 <option value="None">Don't output plot</option>
0cee38fb62af planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/plot_correlation_matrix commit 8451e17775c0ffcd7fa63ef65081f442bef91496
mvdbeek
parents:
diff changeset
38 </param>
0cee38fb62af planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/plot_correlation_matrix commit 8451e17775c0ffcd7fa63ef65081f442bef91496
mvdbeek
parents:
diff changeset
39 <param argument="--method" type="select" label="Select the correlation method">
0cee38fb62af planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/plot_correlation_matrix commit 8451e17775c0ffcd7fa63ef65081f442bef91496
mvdbeek
parents:
diff changeset
40 <option value="pearson">Pearson Correlation</option>
0cee38fb62af planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/plot_correlation_matrix commit 8451e17775c0ffcd7fa63ef65081f442bef91496
mvdbeek
parents:
diff changeset
41 <option value="spearman">Spearman Correlation</option>
0cee38fb62af planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/plot_correlation_matrix commit 8451e17775c0ffcd7fa63ef65081f442bef91496
mvdbeek
parents:
diff changeset
42 <option value="kendall">Kendall-Tau Correlation</option>
0cee38fb62af planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/plot_correlation_matrix commit 8451e17775c0ffcd7fa63ef65081f442bef91496
mvdbeek
parents:
diff changeset
43 </param>
0cee38fb62af planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/plot_correlation_matrix commit 8451e17775c0ffcd7fa63ef65081f442bef91496
mvdbeek
parents:
diff changeset
44 </inputs>
0cee38fb62af planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/plot_correlation_matrix commit 8451e17775c0ffcd7fa63ef65081f442bef91496
mvdbeek
parents:
diff changeset
45 <outputs>
0cee38fb62af planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/plot_correlation_matrix commit 8451e17775c0ffcd7fa63ef65081f442bef91496
mvdbeek
parents:
diff changeset
46 <data name="plot_output" format="pdf" from_work_dir="plot" label="${tool.name} plot on ${on_string}">
0cee38fb62af planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/plot_correlation_matrix commit 8451e17775c0ffcd7fa63ef65081f442bef91496
mvdbeek
parents:
diff changeset
47 <filter>str(plot_type) != "None"</filter>
0cee38fb62af planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/plot_correlation_matrix commit 8451e17775c0ffcd7fa63ef65081f442bef91496
mvdbeek
parents:
diff changeset
48 <change_format>
0cee38fb62af planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/plot_correlation_matrix commit 8451e17775c0ffcd7fa63ef65081f442bef91496
mvdbeek
parents:
diff changeset
49 <when input="plot_type" value="png" format="png"/>
0cee38fb62af planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/plot_correlation_matrix commit 8451e17775c0ffcd7fa63ef65081f442bef91496
mvdbeek
parents:
diff changeset
50 </change_format>
0cee38fb62af planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/plot_correlation_matrix commit 8451e17775c0ffcd7fa63ef65081f442bef91496
mvdbeek
parents:
diff changeset
51 </data>
0cee38fb62af planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/plot_correlation_matrix commit 8451e17775c0ffcd7fa63ef65081f442bef91496
mvdbeek
parents:
diff changeset
52 <data name="tab_output" format="tabular" label="${tool.name} table on ${on_string}"/>
0cee38fb62af planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/plot_correlation_matrix commit 8451e17775c0ffcd7fa63ef65081f442bef91496
mvdbeek
parents:
diff changeset
53 </outputs>
0cee38fb62af planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/plot_correlation_matrix commit 8451e17775c0ffcd7fa63ef65081f442bef91496
mvdbeek
parents:
diff changeset
54 <tests>
0cee38fb62af planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/plot_correlation_matrix commit 8451e17775c0ffcd7fa63ef65081f442bef91496
mvdbeek
parents:
diff changeset
55 <test>
0cee38fb62af planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/plot_correlation_matrix commit 8451e17775c0ffcd7fa63ef65081f442bef91496
mvdbeek
parents:
diff changeset
56 <param name="input_files" value="1.txt,2.txt,3.txt" ftype="tabular"/>
0cee38fb62af planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/plot_correlation_matrix commit 8451e17775c0ffcd7fa63ef65081f442bef91496
mvdbeek
parents:
diff changeset
57 <output name="plot_output" value="corr.pdf" ftype="pdf"/>
0cee38fb62af planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/plot_correlation_matrix commit 8451e17775c0ffcd7fa63ef65081f442bef91496
mvdbeek
parents:
diff changeset
58 <output name="tab_output" value="corr.tab" ftype="tabular"/>
0cee38fb62af planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/plot_correlation_matrix commit 8451e17775c0ffcd7fa63ef65081f442bef91496
mvdbeek
parents:
diff changeset
59 </test>
0cee38fb62af planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/plot_correlation_matrix commit 8451e17775c0ffcd7fa63ef65081f442bef91496
mvdbeek
parents:
diff changeset
60 <test>
0cee38fb62af planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/plot_correlation_matrix commit 8451e17775c0ffcd7fa63ef65081f442bef91496
mvdbeek
parents:
diff changeset
61 <param name="input_files" value="1.txt,2.txt,3.txt" ftype="tabular"/>
0cee38fb62af planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/plot_correlation_matrix commit 8451e17775c0ffcd7fa63ef65081f442bef91496
mvdbeek
parents:
diff changeset
62 <param name="plot_type" value="png"/>
0cee38fb62af planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/plot_correlation_matrix commit 8451e17775c0ffcd7fa63ef65081f442bef91496
mvdbeek
parents:
diff changeset
63 <output name="plot_output" value="corr.png" ftype="png"/>
0cee38fb62af planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/plot_correlation_matrix commit 8451e17775c0ffcd7fa63ef65081f442bef91496
mvdbeek
parents:
diff changeset
64 <output name="tab_output" value="corr.tab" ftype="tabular"/>
0cee38fb62af planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/plot_correlation_matrix commit 8451e17775c0ffcd7fa63ef65081f442bef91496
mvdbeek
parents:
diff changeset
65 </test>
0cee38fb62af planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/plot_correlation_matrix commit 8451e17775c0ffcd7fa63ef65081f442bef91496
mvdbeek
parents:
diff changeset
66 </tests>
0cee38fb62af planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/plot_correlation_matrix commit 8451e17775c0ffcd7fa63ef65081f442bef91496
mvdbeek
parents:
diff changeset
67 <help><![CDATA[
0cee38fb62af planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/plot_correlation_matrix commit 8451e17775c0ffcd7fa63ef65081f442bef91496
mvdbeek
parents:
diff changeset
68 What it does
0cee38fb62af planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/plot_correlation_matrix commit 8451e17775c0ffcd7fa63ef65081f442bef91496
mvdbeek
parents:
diff changeset
69 ------------
0cee38fb62af planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/plot_correlation_matrix commit 8451e17775c0ffcd7fa63ef65081f442bef91496
mvdbeek
parents:
diff changeset
70
0cee38fb62af planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/plot_correlation_matrix commit 8451e17775c0ffcd7fa63ef65081f442bef91496
mvdbeek
parents:
diff changeset
71 This tool calculates the correlation for a selected colum across many datasets.
0cee38fb62af planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/plot_correlation_matrix commit 8451e17775c0ffcd7fa63ef65081f442bef91496
mvdbeek
parents:
diff changeset
72
0cee38fb62af planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/plot_correlation_matrix commit 8451e17775c0ffcd7fa63ef65081f442bef91496
mvdbeek
parents:
diff changeset
73 Example output:
0cee38fb62af planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/plot_correlation_matrix commit 8451e17775c0ffcd7fa63ef65081f442bef91496
mvdbeek
parents:
diff changeset
74 ---------------
0cee38fb62af planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/plot_correlation_matrix commit 8451e17775c0ffcd7fa63ef65081f442bef91496
mvdbeek
parents:
diff changeset
75
0cee38fb62af planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/plot_correlation_matrix commit 8451e17775c0ffcd7fa63ef65081f442bef91496
mvdbeek
parents:
diff changeset
76 .. image:: $PATH_TO_IMAGES/corr.png
0cee38fb62af planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/plot_correlation_matrix commit 8451e17775c0ffcd7fa63ef65081f442bef91496
mvdbeek
parents:
diff changeset
77
0cee38fb62af planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/plot_correlation_matrix commit 8451e17775c0ffcd7fa63ef65081f442bef91496
mvdbeek
parents:
diff changeset
78 ]]></help>
0cee38fb62af planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/plot_correlation_matrix commit 8451e17775c0ffcd7fa63ef65081f442bef91496
mvdbeek
parents:
diff changeset
79 </tool>