comparison marea-1.0.1/marea_cluster.xml @ 15:d0e7f14b773f draft

Upload 1.0.1
author bimib
date Tue, 01 Oct 2019 06:03:12 -0400
parents
children
comparison
equal deleted inserted replaced
14:1a0c8c2780f2 15:d0e7f14b773f
1 <tool id="MaREA_cluester" name="MaREA cluster analysis" version="1.0.1">
2 <description>of Reaction Activity Scores - 1.0.1</description>
3 <macros>
4 <import>marea_macros.xml</import>
5 </macros>
6 <requirements>
7 <requirement type="package" version="0.23.0">pandas</requirement>
8 <requirement type="package" version="1.1.0">scipy</requirement>
9 <requirement type="package" version="0.10.1">cobra</requirement>
10 <requirement type="package" version="0.21.3">scikit-learn</requirement>
11 <requirement type="package" version="2.2.2">matplotlib</requirement>
12 <requirement type="package" version="1.17">numpy</requirement>
13 </requirements>
14 <command detect_errors="exit_code">
15 <![CDATA[
16 python $__tool_directory__/marea_cluster.py
17 --input $input
18 --tool_dir $__tool_directory__
19 --out_log $log
20 #if $data.clust_type == 'kmeans':
21 --k_min ${data.k_min}
22 --k_max ${data.k_max}
23 --elbow ${data.elbow}
24 --silhouette ${data.silhouette}
25 #end if
26 #if $data.clust_type == 'dbscan':
27 #if $data.dbscan_advanced.advanced == 'true'
28 --eps ${data.dbscan_advanced.eps}
29 --min_samples ${data.dbscan_advanced.min_samples}
30 #end if
31 #end if
32 #if $data.clust_type == 'hierarchy':
33 --k_min ${data.k_min}
34 --k_max ${data.k_max}
35 #end if
36 ]]>
37 </command>
38 <inputs>
39 <param name="input" argument="--input" type="data" format="tabular, csv, tsv" label="RNAseq of all samples" />
40
41 <conditional name="data">
42 <param name="clust_type" argument="--cluster_type" type="select" label="Choose clustering type:">
43 <option value="kmeans" selected="true">KMeans</option>
44 <option value="dbscan">DBSCAN</option>
45 <option value="hierarchy">Agglomerative Hierarchical</option>
46 </param>
47 <when value="kmeans">
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" />
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" />
50 <param name="elbow" argument="--elbow" type="boolean" value="true" label="Draw the elbow plot from k-min to k-max"/>
51 <param name="silhouette" argument="--silhouette" type="boolean" value="true" label="Draw the Silhouette plot from k-min to k-max"/>
52 </when>
53 <when value="dbscan">
54 <conditional name="dbscan_advanced">
55 <param name="advanced" type="boolean" value="false" label="Want to use custom params for DBSCAN? (if not optimal values will be used)">
56 <option value="true">Yes</option>
57 <option value="false">No</option>
58 </param>
59 <when value="false"></when>
60 <when value="true">
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" />
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)"/>
63
64 </when>
65 </conditional>
66 </when>
67 <when value="hierarchy">
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" />
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" />
70 </when>
71 </conditional>
72 </inputs>
73
74 <outputs>
75 <data format="txt" name="log" label="${tool.name} - Log" />
76 <collection name="results" type="list" label="${tool.name} - Results">
77 <discover_datasets pattern="__name_and_ext__" directory="clustering"/>
78 </collection>
79 </outputs>
80 <help>
81 <![CDATA[
82
83 What it does
84 -------------
85
86
87 ]]>
88 </help>
89 <expand macro="citations" />
90 </tool>
91
92