annotate Marea/marea_cluster.xml @ 18:52c29033607c draft

fix for dependencies (2)
author bimib
date Tue, 01 Oct 2019 06:17:57 -0400
parents 640f303d0cec
children 69ed2562e81e
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
18
52c29033607c fix for dependencies (2)
bimib
parents: 17
diff changeset
1 <tool id="MaREA_cluester" name="MaREA cluster analysis" version="1.0.2">
52c29033607c fix for dependencies (2)
bimib
parents: 17
diff changeset
2 <description>of Reaction Activity Scores - 1.0.2</description>
16
c71ac0bb12de Uploaded
bimib
parents: 8
diff changeset
3 <macros>
c71ac0bb12de Uploaded
bimib
parents: 8
diff changeset
4 <import>marea_macros.xml</import>
c71ac0bb12de Uploaded
bimib
parents: 8
diff changeset
5 </macros>
c71ac0bb12de Uploaded
bimib
parents: 8
diff changeset
6 <requirements>
17
640f303d0cec fix for dependencies
bimib
parents: 16
diff changeset
7 <requirement type="package" version="0.25.1">pandas</requirement>
16
c71ac0bb12de Uploaded
bimib
parents: 8
diff changeset
8 <requirement type="package" version="1.1.0">scipy</requirement>
c71ac0bb12de Uploaded
bimib
parents: 8
diff changeset
9 <requirement type="package" version="0.10.1">cobra</requirement>
c71ac0bb12de Uploaded
bimib
parents: 8
diff changeset
10 <requirement type="package" version="0.21.3">scikit-learn</requirement>
c71ac0bb12de Uploaded
bimib
parents: 8
diff changeset
11 <requirement type="package" version="2.2.2">matplotlib</requirement>
c71ac0bb12de Uploaded
bimib
parents: 8
diff changeset
12 <requirement type="package" version="1.17">numpy</requirement>
c71ac0bb12de Uploaded
bimib
parents: 8
diff changeset
13 </requirements>
c71ac0bb12de Uploaded
bimib
parents: 8
diff changeset
14 <command detect_errors="exit_code">
c71ac0bb12de Uploaded
bimib
parents: 8
diff changeset
15 <![CDATA[
c71ac0bb12de Uploaded
bimib
parents: 8
diff changeset
16 python $__tool_directory__/marea_cluster.py
c71ac0bb12de Uploaded
bimib
parents: 8
diff changeset
17 --input $input
c71ac0bb12de Uploaded
bimib
parents: 8
diff changeset
18 --tool_dir $__tool_directory__
c71ac0bb12de Uploaded
bimib
parents: 8
diff changeset
19 --out_log $log
c71ac0bb12de Uploaded
bimib
parents: 8
diff changeset
20 #if $data.clust_type == 'kmeans':
c71ac0bb12de Uploaded
bimib
parents: 8
diff changeset
21 --k_min ${data.k_min}
c71ac0bb12de Uploaded
bimib
parents: 8
diff changeset
22 --k_max ${data.k_max}
c71ac0bb12de Uploaded
bimib
parents: 8
diff changeset
23 --elbow ${data.elbow}
c71ac0bb12de Uploaded
bimib
parents: 8
diff changeset
24 --silhouette ${data.silhouette}
c71ac0bb12de Uploaded
bimib
parents: 8
diff changeset
25 #end if
c71ac0bb12de Uploaded
bimib
parents: 8
diff changeset
26 #if $data.clust_type == 'dbscan':
c71ac0bb12de Uploaded
bimib
parents: 8
diff changeset
27 #if $data.dbscan_advanced.advanced == 'true'
c71ac0bb12de Uploaded
bimib
parents: 8
diff changeset
28 --eps ${data.dbscan_advanced.eps}
c71ac0bb12de Uploaded
bimib
parents: 8
diff changeset
29 --min_samples ${data.dbscan_advanced.min_samples}
c71ac0bb12de Uploaded
bimib
parents: 8
diff changeset
30 #end if
c71ac0bb12de Uploaded
bimib
parents: 8
diff changeset
31 #end if
c71ac0bb12de Uploaded
bimib
parents: 8
diff changeset
32 #if $data.clust_type == 'hierarchy':
c71ac0bb12de Uploaded
bimib
parents: 8
diff changeset
33 --k_min ${data.k_min}
c71ac0bb12de Uploaded
bimib
parents: 8
diff changeset
34 --k_max ${data.k_max}
c71ac0bb12de Uploaded
bimib
parents: 8
diff changeset
35 #end if
c71ac0bb12de Uploaded
bimib
parents: 8
diff changeset
36 ]]>
c71ac0bb12de Uploaded
bimib
parents: 8
diff changeset
37 </command>
c71ac0bb12de Uploaded
bimib
parents: 8
diff changeset
38 <inputs>
c71ac0bb12de Uploaded
bimib
parents: 8
diff changeset
39 <param name="input" argument="--input" type="data" format="tabular, csv, tsv" label="RNAseq of all samples" />
c71ac0bb12de Uploaded
bimib
parents: 8
diff changeset
40
c71ac0bb12de Uploaded
bimib
parents: 8
diff changeset
41 <conditional name="data">
c71ac0bb12de Uploaded
bimib
parents: 8
diff changeset
42 <param name="clust_type" argument="--cluster_type" type="select" label="Choose clustering type:">
c71ac0bb12de Uploaded
bimib
parents: 8
diff changeset
43 <option value="kmeans" selected="true">KMeans</option>
c71ac0bb12de Uploaded
bimib
parents: 8
diff changeset
44 <option value="dbscan">DBSCAN</option>
c71ac0bb12de Uploaded
bimib
parents: 8
diff changeset
45 <option value="hierarchy">Agglomerative Hierarchical</option>
c71ac0bb12de Uploaded
bimib
parents: 8
diff changeset
46 </param>
c71ac0bb12de Uploaded
bimib
parents: 8
diff changeset
47 <when value="kmeans">
c71ac0bb12de Uploaded
bimib
parents: 8
diff changeset
48 <param name="k_min" argument="--k_min" type="integer" min="2" max="99" value="3" label="Min number of clusters (k) to be tested" />
c71ac0bb12de Uploaded
bimib
parents: 8
diff changeset
49 <param name="k_max" argument="--k_max" type="integer" min="3" max="99" value="5" label="Max number of clusters (k) to be tested" />
c71ac0bb12de Uploaded
bimib
parents: 8
diff changeset
50 <param name="elbow" argument="--elbow" type="boolean" value="true" label="Draw the elbow plot from k-min to k-max"/>
c71ac0bb12de Uploaded
bimib
parents: 8
diff changeset
51 <param name="silhouette" argument="--silhouette" type="boolean" value="true" label="Draw the Silhouette plot from k-min to k-max"/>
c71ac0bb12de Uploaded
bimib
parents: 8
diff changeset
52 </when>
c71ac0bb12de Uploaded
bimib
parents: 8
diff changeset
53 <when value="dbscan">
c71ac0bb12de Uploaded
bimib
parents: 8
diff changeset
54 <conditional name="dbscan_advanced">
c71ac0bb12de Uploaded
bimib
parents: 8
diff changeset
55 <param name="advanced" type="boolean" value="false" label="Want to use custom params for DBSCAN? (if not optimal values will be used)">
c71ac0bb12de Uploaded
bimib
parents: 8
diff changeset
56 <option value="true">Yes</option>
c71ac0bb12de Uploaded
bimib
parents: 8
diff changeset
57 <option value="false">No</option>
c71ac0bb12de Uploaded
bimib
parents: 8
diff changeset
58 </param>
c71ac0bb12de Uploaded
bimib
parents: 8
diff changeset
59 <when value="false"></when>
c71ac0bb12de Uploaded
bimib
parents: 8
diff changeset
60 <when value="true">
c71ac0bb12de Uploaded
bimib
parents: 8
diff changeset
61 <param name="eps" argument="--eps" type="float" value="0.5" label="Epsilon - The maximum distance between two samples for one to be considered as in the neighborhood of the other" />
c71ac0bb12de Uploaded
bimib
parents: 8
diff changeset
62 <param name="min_samples" argument="min_samples" type="integer" value="5" label="Min samples - The number of samples in a neighborhood for a point to be considered as a core point (this includes the point itself)"/>
c71ac0bb12de Uploaded
bimib
parents: 8
diff changeset
63
c71ac0bb12de Uploaded
bimib
parents: 8
diff changeset
64 </when>
c71ac0bb12de Uploaded
bimib
parents: 8
diff changeset
65 </conditional>
c71ac0bb12de Uploaded
bimib
parents: 8
diff changeset
66 </when>
c71ac0bb12de Uploaded
bimib
parents: 8
diff changeset
67 <when value="hierarchy">
c71ac0bb12de Uploaded
bimib
parents: 8
diff changeset
68 <param name="k_min" argument="--k_min" type="integer" min="2" max="99" value="3" label="Min number of clusters (k) to be tested" />
c71ac0bb12de Uploaded
bimib
parents: 8
diff changeset
69 <param name="k_max" argument="--k_max" type="integer" min="3" max="99" value="5" label="Max number of clusters (k) to be tested" />
c71ac0bb12de Uploaded
bimib
parents: 8
diff changeset
70 </when>
c71ac0bb12de Uploaded
bimib
parents: 8
diff changeset
71 </conditional>
c71ac0bb12de Uploaded
bimib
parents: 8
diff changeset
72 </inputs>
c71ac0bb12de Uploaded
bimib
parents: 8
diff changeset
73
c71ac0bb12de Uploaded
bimib
parents: 8
diff changeset
74 <outputs>
c71ac0bb12de Uploaded
bimib
parents: 8
diff changeset
75 <data format="txt" name="log" label="${tool.name} - Log" />
c71ac0bb12de Uploaded
bimib
parents: 8
diff changeset
76 <collection name="results" type="list" label="${tool.name} - Results">
c71ac0bb12de Uploaded
bimib
parents: 8
diff changeset
77 <discover_datasets pattern="__name_and_ext__" directory="clustering"/>
c71ac0bb12de Uploaded
bimib
parents: 8
diff changeset
78 </collection>
c71ac0bb12de Uploaded
bimib
parents: 8
diff changeset
79 </outputs>
c71ac0bb12de Uploaded
bimib
parents: 8
diff changeset
80 <help>
c71ac0bb12de Uploaded
bimib
parents: 8
diff changeset
81 <![CDATA[
c71ac0bb12de Uploaded
bimib
parents: 8
diff changeset
82
c71ac0bb12de Uploaded
bimib
parents: 8
diff changeset
83 What it does
c71ac0bb12de Uploaded
bimib
parents: 8
diff changeset
84 -------------
c71ac0bb12de Uploaded
bimib
parents: 8
diff changeset
85
c71ac0bb12de Uploaded
bimib
parents: 8
diff changeset
86
c71ac0bb12de Uploaded
bimib
parents: 8
diff changeset
87 ]]>
c71ac0bb12de Uploaded
bimib
parents: 8
diff changeset
88 </help>
c71ac0bb12de Uploaded
bimib
parents: 8
diff changeset
89 <expand macro="citations" />
c71ac0bb12de Uploaded
bimib
parents: 8
diff changeset
90 </tool>
c71ac0bb12de Uploaded
bimib
parents: 8
diff changeset
91
c71ac0bb12de Uploaded
bimib
parents: 8
diff changeset
92