Mercurial > repos > iuc > clustering_from_distmat
annotate clustering_from_distmat.xml @ 2:f8ee933de3ca draft default tip
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/clustering_from_distmat/ commit e4b7fe74660f4d57fce7a5708bdbddaf769cc968
author | iuc |
---|---|
date | Mon, 16 Sep 2024 14:57:17 +0000 |
parents | c0b01c55a0e0 |
children |
rev | line source |
---|---|
2
f8ee933de3ca
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/clustering_from_distmat/ commit e4b7fe74660f4d57fce7a5708bdbddaf769cc968
iuc
parents:
1
diff
changeset
|
1 <tool id="clustering_from_distmat" name="Distance matrix-based hierarchical clustering" version="1.1.1" profile="23.0"> |
0
8192b416f945
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/clustering_from_distmat/ commit a34052b87a2d05cabed5001c50f1bb10e74f97ee
iuc
parents:
diff
changeset
|
2 <description>using Scipy</description> |
1
c0b01c55a0e0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/clustering_from_distmat/ commit 65b5c6f177478883ce664aeb6f27d0bec7155fdc
iuc
parents:
0
diff
changeset
|
3 <macros> |
c0b01c55a0e0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/clustering_from_distmat/ commit 65b5c6f177478883ce664aeb6f27d0bec7155fdc
iuc
parents:
0
diff
changeset
|
4 <xml name="cluster_assignment_options"> |
c0b01c55a0e0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/clustering_from_distmat/ commit 65b5c6f177478883ce664aeb6f27d0bec7155fdc
iuc
parents:
0
diff
changeset
|
5 <param name="min_cluster_size" type="integer" value="2" min="1" label="Mask clusters with less than this number of samples" help="Samples assigned to clusters smaller than this threshold will have '-' in the corresponding cluster ID column" /> |
c0b01c55a0e0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/clustering_from_distmat/ commit 65b5c6f177478883ce664aeb6f27d0bec7155fdc
iuc
parents:
0
diff
changeset
|
6 <param name="generate_dendrogram" type="boolean" label="Produce also the dendrogram of clustering results" /> |
c0b01c55a0e0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/clustering_from_distmat/ commit 65b5c6f177478883ce664aeb6f27d0bec7155fdc
iuc
parents:
0
diff
changeset
|
7 </xml> |
c0b01c55a0e0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/clustering_from_distmat/ commit 65b5c6f177478883ce664aeb6f27d0bec7155fdc
iuc
parents:
0
diff
changeset
|
8 </macros> |
0
8192b416f945
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/clustering_from_distmat/ commit a34052b87a2d05cabed5001c50f1bb10e74f97ee
iuc
parents:
diff
changeset
|
9 <edam_topics> |
8192b416f945
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/clustering_from_distmat/ commit a34052b87a2d05cabed5001c50f1bb10e74f97ee
iuc
parents:
diff
changeset
|
10 <edam_topic>topic_2269</edam_topic> |
8192b416f945
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/clustering_from_distmat/ commit a34052b87a2d05cabed5001c50f1bb10e74f97ee
iuc
parents:
diff
changeset
|
11 <edam_topic>topic_0084</edam_topic> |
8192b416f945
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/clustering_from_distmat/ commit a34052b87a2d05cabed5001c50f1bb10e74f97ee
iuc
parents:
diff
changeset
|
12 </edam_topics> |
8192b416f945
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/clustering_from_distmat/ commit a34052b87a2d05cabed5001c50f1bb10e74f97ee
iuc
parents:
diff
changeset
|
13 <edam_operations> |
8192b416f945
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/clustering_from_distmat/ commit a34052b87a2d05cabed5001c50f1bb10e74f97ee
iuc
parents:
diff
changeset
|
14 <edam_operation>operation_3432</edam_operation> |
8192b416f945
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/clustering_from_distmat/ commit a34052b87a2d05cabed5001c50f1bb10e74f97ee
iuc
parents:
diff
changeset
|
15 </edam_operations> |
8192b416f945
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/clustering_from_distmat/ commit a34052b87a2d05cabed5001c50f1bb10e74f97ee
iuc
parents:
diff
changeset
|
16 <requirements> |
8192b416f945
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/clustering_from_distmat/ commit a34052b87a2d05cabed5001c50f1bb10e74f97ee
iuc
parents:
diff
changeset
|
17 <requirement type="package" version="3.12">python</requirement> |
8192b416f945
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/clustering_from_distmat/ commit a34052b87a2d05cabed5001c50f1bb10e74f97ee
iuc
parents:
diff
changeset
|
18 <requirement type="package" version="1.14.0">scipy</requirement> |
8192b416f945
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/clustering_from_distmat/ commit a34052b87a2d05cabed5001c50f1bb10e74f97ee
iuc
parents:
diff
changeset
|
19 </requirements> |
8192b416f945
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/clustering_from_distmat/ commit a34052b87a2d05cabed5001c50f1bb10e74f97ee
iuc
parents:
diff
changeset
|
20 <command detect_errors="exit_code"><![CDATA[ |
8192b416f945
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/clustering_from_distmat/ commit a34052b87a2d05cabed5001c50f1bb10e74f97ee
iuc
parents:
diff
changeset
|
21 python '$__tool_directory__/clustering_from_distmat.py' |
8192b416f945
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/clustering_from_distmat/ commit a34052b87a2d05cabed5001c50f1bb10e74f97ee
iuc
parents:
diff
changeset
|
22 '$distmat' |
8192b416f945
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/clustering_from_distmat/ commit a34052b87a2d05cabed5001c50f1bb10e74f97ee
iuc
parents:
diff
changeset
|
23 result |
8192b416f945
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/clustering_from_distmat/ commit a34052b87a2d05cabed5001c50f1bb10e74f97ee
iuc
parents:
diff
changeset
|
24 --method $method |
1
c0b01c55a0e0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/clustering_from_distmat/ commit 65b5c6f177478883ce664aeb6f27d0bec7155fdc
iuc
parents:
0
diff
changeset
|
25 $missing_names |
0
8192b416f945
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/clustering_from_distmat/ commit a34052b87a2d05cabed5001c50f1bb10e74f97ee
iuc
parents:
diff
changeset
|
26 #if str($cluster_assignment.select) == 'n-cluster': |
8192b416f945
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/clustering_from_distmat/ commit a34052b87a2d05cabed5001c50f1bb10e74f97ee
iuc
parents:
diff
changeset
|
27 --n-clusters $cluster_assignment.n_cluster |
8192b416f945
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/clustering_from_distmat/ commit a34052b87a2d05cabed5001c50f1bb10e74f97ee
iuc
parents:
diff
changeset
|
28 #elif str($cluster_assignment.select) == 'height': |
8192b416f945
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/clustering_from_distmat/ commit a34052b87a2d05cabed5001c50f1bb10e74f97ee
iuc
parents:
diff
changeset
|
29 --height $cluster_assignment.height |
8192b416f945
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/clustering_from_distmat/ commit a34052b87a2d05cabed5001c50f1bb10e74f97ee
iuc
parents:
diff
changeset
|
30 #end if |
1
c0b01c55a0e0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/clustering_from_distmat/ commit 65b5c6f177478883ce664aeb6f27d0bec7155fdc
iuc
parents:
0
diff
changeset
|
31 #if str($cluster_assignment.select) != 'dendrogram-only' and $cluster_assignment.min_cluster_size != 2: |
c0b01c55a0e0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/clustering_from_distmat/ commit 65b5c6f177478883ce664aeb6f27d0bec7155fdc
iuc
parents:
0
diff
changeset
|
32 --min-cluster-size $cluster_assignment.min_cluster_size |
c0b01c55a0e0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/clustering_from_distmat/ commit 65b5c6f177478883ce664aeb6f27d0bec7155fdc
iuc
parents:
0
diff
changeset
|
33 #end if |
0
8192b416f945
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/clustering_from_distmat/ commit a34052b87a2d05cabed5001c50f1bb10e74f97ee
iuc
parents:
diff
changeset
|
34 ]]></command> |
8192b416f945
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/clustering_from_distmat/ commit a34052b87a2d05cabed5001c50f1bb10e74f97ee
iuc
parents:
diff
changeset
|
35 <inputs> |
8192b416f945
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/clustering_from_distmat/ commit a34052b87a2d05cabed5001c50f1bb10e74f97ee
iuc
parents:
diff
changeset
|
36 <param name="distmat" type="data" format="tabular" label="Distance matrix" /> |
8192b416f945
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/clustering_from_distmat/ commit a34052b87a2d05cabed5001c50f1bb10e74f97ee
iuc
parents:
diff
changeset
|
37 <param name="method" type="select" label="Clustering method"> |
8192b416f945
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/clustering_from_distmat/ commit a34052b87a2d05cabed5001c50f1bb10e74f97ee
iuc
parents:
diff
changeset
|
38 <option value="single">Nearest Point (scipy 'single' method)</option> |
8192b416f945
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/clustering_from_distmat/ commit a34052b87a2d05cabed5001c50f1bb10e74f97ee
iuc
parents:
diff
changeset
|
39 <option value="complete">Farthest Point (scipy 'complete' method)</option> |
8192b416f945
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/clustering_from_distmat/ commit a34052b87a2d05cabed5001c50f1bb10e74f97ee
iuc
parents:
diff
changeset
|
40 <option value="average" selected="true">UPGMA (scipy 'average' method)</option> |
8192b416f945
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/clustering_from_distmat/ commit a34052b87a2d05cabed5001c50f1bb10e74f97ee
iuc
parents:
diff
changeset
|
41 <option value="weighted">WPGMA (scipy 'weighted' method)</option> |
8192b416f945
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/clustering_from_distmat/ commit a34052b87a2d05cabed5001c50f1bb10e74f97ee
iuc
parents:
diff
changeset
|
42 <option value="centroid">UPGMC (scipy 'centroid' method)</option> |
8192b416f945
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/clustering_from_distmat/ commit a34052b87a2d05cabed5001c50f1bb10e74f97ee
iuc
parents:
diff
changeset
|
43 <option value="median">WPGMC (scipy 'median' method)</option> |
8192b416f945
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/clustering_from_distmat/ commit a34052b87a2d05cabed5001c50f1bb10e74f97ee
iuc
parents:
diff
changeset
|
44 <option value="ward">Ward/Incremental (scipy 'ward' method)</option> |
8192b416f945
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/clustering_from_distmat/ commit a34052b87a2d05cabed5001c50f1bb10e74f97ee
iuc
parents:
diff
changeset
|
45 </param> |
1
c0b01c55a0e0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/clustering_from_distmat/ commit 65b5c6f177478883ce664aeb6f27d0bec7155fdc
iuc
parents:
0
diff
changeset
|
46 <param name="missing_names" type="select" label="How does the input specify sample names?"> |
c0b01c55a0e0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/clustering_from_distmat/ commit 65b5c6f177478883ce664aeb6f27d0bec7155fdc
iuc
parents:
0
diff
changeset
|
47 <option value="">First line and first column specify sample names (fully symmetric input)</option> |
c0b01c55a0e0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/clustering_from_distmat/ commit 65b5c6f177478883ce664aeb6f27d0bec7155fdc
iuc
parents:
0
diff
changeset
|
48 <option value="--nr">First line specifies sample names, subsequent lines only data</option> |
c0b01c55a0e0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/clustering_from_distmat/ commit 65b5c6f177478883ce664aeb6f27d0bec7155fdc
iuc
parents:
0
diff
changeset
|
49 <option value="--nc">Each line specifies sample name in first column, first line is not special</option> |
c0b01c55a0e0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/clustering_from_distmat/ commit 65b5c6f177478883ce664aeb6f27d0bec7155fdc
iuc
parents:
0
diff
changeset
|
50 </param> |
0
8192b416f945
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/clustering_from_distmat/ commit a34052b87a2d05cabed5001c50f1bb10e74f97ee
iuc
parents:
diff
changeset
|
51 <conditional name="cluster_assignment"> |
8192b416f945
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/clustering_from_distmat/ commit a34052b87a2d05cabed5001c50f1bb10e74f97ee
iuc
parents:
diff
changeset
|
52 <param name="select" type="select" label="Generate cluster assignments?"> |
8192b416f945
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/clustering_from_distmat/ commit a34052b87a2d05cabed5001c50f1bb10e74f97ee
iuc
parents:
diff
changeset
|
53 <option value="dendrogram-only">No, just generate the dendrogram of clustering results</option> |
8192b416f945
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/clustering_from_distmat/ commit a34052b87a2d05cabed5001c50f1bb10e74f97ee
iuc
parents:
diff
changeset
|
54 <option value="n-cluster">Yes, and divide into specified number of clusters </option> |
8192b416f945
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/clustering_from_distmat/ commit a34052b87a2d05cabed5001c50f1bb10e74f97ee
iuc
parents:
diff
changeset
|
55 <option value="height">Yes, and use distance threshold to divide into clusters</option> |
8192b416f945
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/clustering_from_distmat/ commit a34052b87a2d05cabed5001c50f1bb10e74f97ee
iuc
parents:
diff
changeset
|
56 </param> |
8192b416f945
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/clustering_from_distmat/ commit a34052b87a2d05cabed5001c50f1bb10e74f97ee
iuc
parents:
diff
changeset
|
57 <when value="dendrogram-only" /> |
8192b416f945
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/clustering_from_distmat/ commit a34052b87a2d05cabed5001c50f1bb10e74f97ee
iuc
parents:
diff
changeset
|
58 <when value="n-cluster"> |
8192b416f945
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/clustering_from_distmat/ commit a34052b87a2d05cabed5001c50f1bb10e74f97ee
iuc
parents:
diff
changeset
|
59 <param name="n_cluster" type="integer" value="5" min="1" label="How many clusters to divide into?" /> |
1
c0b01c55a0e0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/clustering_from_distmat/ commit 65b5c6f177478883ce664aeb6f27d0bec7155fdc
iuc
parents:
0
diff
changeset
|
60 <expand macro="cluster_assignment_options" /> |
0
8192b416f945
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/clustering_from_distmat/ commit a34052b87a2d05cabed5001c50f1bb10e74f97ee
iuc
parents:
diff
changeset
|
61 </when> |
8192b416f945
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/clustering_from_distmat/ commit a34052b87a2d05cabed5001c50f1bb10e74f97ee
iuc
parents:
diff
changeset
|
62 <when value="height"> |
2
f8ee933de3ca
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/clustering_from_distmat/ commit e4b7fe74660f4d57fce7a5708bdbddaf769cc968
iuc
parents:
1
diff
changeset
|
63 <param name="height" type="float" value="5.0" label="Distance threshold for sample clustering" help="Samples that are LESS than this distance from each other will be assigned to the same cluster." /> |
1
c0b01c55a0e0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/clustering_from_distmat/ commit 65b5c6f177478883ce664aeb6f27d0bec7155fdc
iuc
parents:
0
diff
changeset
|
64 <expand macro="cluster_assignment_options" /> |
0
8192b416f945
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/clustering_from_distmat/ commit a34052b87a2d05cabed5001c50f1bb10e74f97ee
iuc
parents:
diff
changeset
|
65 </when> |
8192b416f945
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/clustering_from_distmat/ commit a34052b87a2d05cabed5001c50f1bb10e74f97ee
iuc
parents:
diff
changeset
|
66 </conditional> |
8192b416f945
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/clustering_from_distmat/ commit a34052b87a2d05cabed5001c50f1bb10e74f97ee
iuc
parents:
diff
changeset
|
67 </inputs> |
8192b416f945
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/clustering_from_distmat/ commit a34052b87a2d05cabed5001c50f1bb10e74f97ee
iuc
parents:
diff
changeset
|
68 <outputs> |
8192b416f945
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/clustering_from_distmat/ commit a34052b87a2d05cabed5001c50f1bb10e74f97ee
iuc
parents:
diff
changeset
|
69 <data name="clustering_dendrogram" format="newick" from_work_dir="result.tree.newick" label="${tool.name} on ${on_string}: Dendrogram"> |
8192b416f945
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/clustering_from_distmat/ commit a34052b87a2d05cabed5001c50f1bb10e74f97ee
iuc
parents:
diff
changeset
|
70 <filter>cluster_assignment["select"] == "dendrogram-only" or cluster_assignment["generate_dendrogram"]</filter> |
8192b416f945
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/clustering_from_distmat/ commit a34052b87a2d05cabed5001c50f1bb10e74f97ee
iuc
parents:
diff
changeset
|
71 </data> |
8192b416f945
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/clustering_from_distmat/ commit a34052b87a2d05cabed5001c50f1bb10e74f97ee
iuc
parents:
diff
changeset
|
72 <data name="clustering_assignment" format="tabular" from_work_dir="result.cluster_assignments.tsv" label="${tool.name} on ${on_string}: Cluster assignment"> |
8192b416f945
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/clustering_from_distmat/ commit a34052b87a2d05cabed5001c50f1bb10e74f97ee
iuc
parents:
diff
changeset
|
73 <filter>cluster_assignment["select"] in ["n-cluster", "height"]</filter> |
8192b416f945
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/clustering_from_distmat/ commit a34052b87a2d05cabed5001c50f1bb10e74f97ee
iuc
parents:
diff
changeset
|
74 </data> |
8192b416f945
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/clustering_from_distmat/ commit a34052b87a2d05cabed5001c50f1bb10e74f97ee
iuc
parents:
diff
changeset
|
75 </outputs> |
8192b416f945
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/clustering_from_distmat/ commit a34052b87a2d05cabed5001c50f1bb10e74f97ee
iuc
parents:
diff
changeset
|
76 <tests> |
8192b416f945
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/clustering_from_distmat/ commit a34052b87a2d05cabed5001c50f1bb10e74f97ee
iuc
parents:
diff
changeset
|
77 <!-- Test data and expected results taken from https://en.wikipedia.org/wiki/UPGMA#Working_example --> |
8192b416f945
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/clustering_from_distmat/ commit a34052b87a2d05cabed5001c50f1bb10e74f97ee
iuc
parents:
diff
changeset
|
78 <test expect_num_outputs="1"> |
8192b416f945
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/clustering_from_distmat/ commit a34052b87a2d05cabed5001c50f1bb10e74f97ee
iuc
parents:
diff
changeset
|
79 <param name="distmat" value="test_matrix.tsv"/> |
8192b416f945
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/clustering_from_distmat/ commit a34052b87a2d05cabed5001c50f1bb10e74f97ee
iuc
parents:
diff
changeset
|
80 <output name="clustering_dendrogram" ftype="newick" file="test_tree_average.newick" /> |
8192b416f945
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/clustering_from_distmat/ commit a34052b87a2d05cabed5001c50f1bb10e74f97ee
iuc
parents:
diff
changeset
|
81 </test> |
8192b416f945
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/clustering_from_distmat/ commit a34052b87a2d05cabed5001c50f1bb10e74f97ee
iuc
parents:
diff
changeset
|
82 <test expect_num_outputs="1"> |
8192b416f945
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/clustering_from_distmat/ commit a34052b87a2d05cabed5001c50f1bb10e74f97ee
iuc
parents:
diff
changeset
|
83 <param name="distmat" value="test_matrix.tsv" /> |
8192b416f945
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/clustering_from_distmat/ commit a34052b87a2d05cabed5001c50f1bb10e74f97ee
iuc
parents:
diff
changeset
|
84 <param name="method" value="complete" /> |
8192b416f945
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/clustering_from_distmat/ commit a34052b87a2d05cabed5001c50f1bb10e74f97ee
iuc
parents:
diff
changeset
|
85 <output name="clustering_dendrogram" ftype="newick" file="test_tree_complete.newick" /> |
8192b416f945
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/clustering_from_distmat/ commit a34052b87a2d05cabed5001c50f1bb10e74f97ee
iuc
parents:
diff
changeset
|
86 </test> |
8192b416f945
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/clustering_from_distmat/ commit a34052b87a2d05cabed5001c50f1bb10e74f97ee
iuc
parents:
diff
changeset
|
87 <test expect_num_outputs="1"> |
8192b416f945
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/clustering_from_distmat/ commit a34052b87a2d05cabed5001c50f1bb10e74f97ee
iuc
parents:
diff
changeset
|
88 <param name="distmat" value="test_matrix.tsv"/> |
8192b416f945
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/clustering_from_distmat/ commit a34052b87a2d05cabed5001c50f1bb10e74f97ee
iuc
parents:
diff
changeset
|
89 <conditional name="cluster_assignment"> |
8192b416f945
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/clustering_from_distmat/ commit a34052b87a2d05cabed5001c50f1bb10e74f97ee
iuc
parents:
diff
changeset
|
90 <param name="select" value="height" /> |
8192b416f945
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/clustering_from_distmat/ commit a34052b87a2d05cabed5001c50f1bb10e74f97ee
iuc
parents:
diff
changeset
|
91 <param name="height" value="18" /> |
1
c0b01c55a0e0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/clustering_from_distmat/ commit 65b5c6f177478883ce664aeb6f27d0bec7155fdc
iuc
parents:
0
diff
changeset
|
92 <param name="min_cluster_size" value="1" /> |
0
8192b416f945
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/clustering_from_distmat/ commit a34052b87a2d05cabed5001c50f1bb10e74f97ee
iuc
parents:
diff
changeset
|
93 </conditional> |
8192b416f945
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/clustering_from_distmat/ commit a34052b87a2d05cabed5001c50f1bb10e74f97ee
iuc
parents:
diff
changeset
|
94 <output name="clustering_assignment" ftype="tabular" file="test_assignment_average_h18.tsv" /> |
8192b416f945
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/clustering_from_distmat/ commit a34052b87a2d05cabed5001c50f1bb10e74f97ee
iuc
parents:
diff
changeset
|
95 </test> |
1
c0b01c55a0e0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/clustering_from_distmat/ commit 65b5c6f177478883ce664aeb6f27d0bec7155fdc
iuc
parents:
0
diff
changeset
|
96 <test expect_num_outputs="1"> |
c0b01c55a0e0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/clustering_from_distmat/ commit 65b5c6f177478883ce664aeb6f27d0bec7155fdc
iuc
parents:
0
diff
changeset
|
97 <param name="distmat" value="test_matrix.tsv"/> |
c0b01c55a0e0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/clustering_from_distmat/ commit 65b5c6f177478883ce664aeb6f27d0bec7155fdc
iuc
parents:
0
diff
changeset
|
98 <conditional name="cluster_assignment"> |
c0b01c55a0e0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/clustering_from_distmat/ commit 65b5c6f177478883ce664aeb6f27d0bec7155fdc
iuc
parents:
0
diff
changeset
|
99 <param name="select" value="height" /> |
c0b01c55a0e0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/clustering_from_distmat/ commit 65b5c6f177478883ce664aeb6f27d0bec7155fdc
iuc
parents:
0
diff
changeset
|
100 <param name="height" value="18" /> |
c0b01c55a0e0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/clustering_from_distmat/ commit 65b5c6f177478883ce664aeb6f27d0bec7155fdc
iuc
parents:
0
diff
changeset
|
101 </conditional> |
c0b01c55a0e0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/clustering_from_distmat/ commit 65b5c6f177478883ce664aeb6f27d0bec7155fdc
iuc
parents:
0
diff
changeset
|
102 <output name="clustering_assignment" ftype="tabular" file="test_assignment_average_h18_s2.tsv" /> |
c0b01c55a0e0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/clustering_from_distmat/ commit 65b5c6f177478883ce664aeb6f27d0bec7155fdc
iuc
parents:
0
diff
changeset
|
103 </test> |
0
8192b416f945
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/clustering_from_distmat/ commit a34052b87a2d05cabed5001c50f1bb10e74f97ee
iuc
parents:
diff
changeset
|
104 <test expect_num_outputs="2"> |
8192b416f945
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/clustering_from_distmat/ commit a34052b87a2d05cabed5001c50f1bb10e74f97ee
iuc
parents:
diff
changeset
|
105 <param name="distmat" value="test_matrix.tsv"/> |
8192b416f945
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/clustering_from_distmat/ commit a34052b87a2d05cabed5001c50f1bb10e74f97ee
iuc
parents:
diff
changeset
|
106 <conditional name="cluster_assignment"> |
8192b416f945
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/clustering_from_distmat/ commit a34052b87a2d05cabed5001c50f1bb10e74f97ee
iuc
parents:
diff
changeset
|
107 <param name="select" value="n-cluster" /> |
8192b416f945
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/clustering_from_distmat/ commit a34052b87a2d05cabed5001c50f1bb10e74f97ee
iuc
parents:
diff
changeset
|
108 <param name="n_cluster" value="4" /> |
1
c0b01c55a0e0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/clustering_from_distmat/ commit 65b5c6f177478883ce664aeb6f27d0bec7155fdc
iuc
parents:
0
diff
changeset
|
109 <param name="min_cluster_size" value="1" /> |
c0b01c55a0e0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/clustering_from_distmat/ commit 65b5c6f177478883ce664aeb6f27d0bec7155fdc
iuc
parents:
0
diff
changeset
|
110 <param name="generate_dendrogram" value="true" /> |
c0b01c55a0e0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/clustering_from_distmat/ commit 65b5c6f177478883ce664aeb6f27d0bec7155fdc
iuc
parents:
0
diff
changeset
|
111 </conditional> |
c0b01c55a0e0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/clustering_from_distmat/ commit 65b5c6f177478883ce664aeb6f27d0bec7155fdc
iuc
parents:
0
diff
changeset
|
112 <output name="clustering_assignment" ftype="tabular" file="test_assignment_average_n4.tsv" /> |
c0b01c55a0e0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/clustering_from_distmat/ commit 65b5c6f177478883ce664aeb6f27d0bec7155fdc
iuc
parents:
0
diff
changeset
|
113 </test> |
c0b01c55a0e0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/clustering_from_distmat/ commit 65b5c6f177478883ce664aeb6f27d0bec7155fdc
iuc
parents:
0
diff
changeset
|
114 <test expect_num_outputs="2"> |
c0b01c55a0e0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/clustering_from_distmat/ commit 65b5c6f177478883ce664aeb6f27d0bec7155fdc
iuc
parents:
0
diff
changeset
|
115 <param name="distmat" value="test_matrix_nr.tsv" /> |
c0b01c55a0e0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/clustering_from_distmat/ commit 65b5c6f177478883ce664aeb6f27d0bec7155fdc
iuc
parents:
0
diff
changeset
|
116 <param name="missing_names" value="--nr" /> |
c0b01c55a0e0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/clustering_from_distmat/ commit 65b5c6f177478883ce664aeb6f27d0bec7155fdc
iuc
parents:
0
diff
changeset
|
117 <conditional name="cluster_assignment"> |
c0b01c55a0e0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/clustering_from_distmat/ commit 65b5c6f177478883ce664aeb6f27d0bec7155fdc
iuc
parents:
0
diff
changeset
|
118 <param name="select" value="n-cluster" /> |
c0b01c55a0e0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/clustering_from_distmat/ commit 65b5c6f177478883ce664aeb6f27d0bec7155fdc
iuc
parents:
0
diff
changeset
|
119 <param name="n_cluster" value="4" /> |
c0b01c55a0e0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/clustering_from_distmat/ commit 65b5c6f177478883ce664aeb6f27d0bec7155fdc
iuc
parents:
0
diff
changeset
|
120 <param name="min_cluster_size" value="1" /> |
c0b01c55a0e0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/clustering_from_distmat/ commit 65b5c6f177478883ce664aeb6f27d0bec7155fdc
iuc
parents:
0
diff
changeset
|
121 <param name="generate_dendrogram" value="true" /> |
c0b01c55a0e0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/clustering_from_distmat/ commit 65b5c6f177478883ce664aeb6f27d0bec7155fdc
iuc
parents:
0
diff
changeset
|
122 </conditional> |
c0b01c55a0e0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/clustering_from_distmat/ commit 65b5c6f177478883ce664aeb6f27d0bec7155fdc
iuc
parents:
0
diff
changeset
|
123 <output name="clustering_assignment" ftype="tabular" file="test_assignment_average_n4.tsv" /> |
c0b01c55a0e0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/clustering_from_distmat/ commit 65b5c6f177478883ce664aeb6f27d0bec7155fdc
iuc
parents:
0
diff
changeset
|
124 </test> |
c0b01c55a0e0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/clustering_from_distmat/ commit 65b5c6f177478883ce664aeb6f27d0bec7155fdc
iuc
parents:
0
diff
changeset
|
125 <test expect_num_outputs="2"> |
c0b01c55a0e0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/clustering_from_distmat/ commit 65b5c6f177478883ce664aeb6f27d0bec7155fdc
iuc
parents:
0
diff
changeset
|
126 <param name="distmat" value="test_matrix_nc.tsv" /> |
c0b01c55a0e0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/clustering_from_distmat/ commit 65b5c6f177478883ce664aeb6f27d0bec7155fdc
iuc
parents:
0
diff
changeset
|
127 <param name="missing_names" value="--nc" /> |
c0b01c55a0e0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/clustering_from_distmat/ commit 65b5c6f177478883ce664aeb6f27d0bec7155fdc
iuc
parents:
0
diff
changeset
|
128 <conditional name="cluster_assignment"> |
c0b01c55a0e0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/clustering_from_distmat/ commit 65b5c6f177478883ce664aeb6f27d0bec7155fdc
iuc
parents:
0
diff
changeset
|
129 <param name="select" value="n-cluster" /> |
c0b01c55a0e0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/clustering_from_distmat/ commit 65b5c6f177478883ce664aeb6f27d0bec7155fdc
iuc
parents:
0
diff
changeset
|
130 <param name="n_cluster" value="4" /> |
c0b01c55a0e0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/clustering_from_distmat/ commit 65b5c6f177478883ce664aeb6f27d0bec7155fdc
iuc
parents:
0
diff
changeset
|
131 <param name="min_cluster_size" value="1" /> |
0
8192b416f945
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/clustering_from_distmat/ commit a34052b87a2d05cabed5001c50f1bb10e74f97ee
iuc
parents:
diff
changeset
|
132 <param name="generate_dendrogram" value="true" /> |
8192b416f945
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/clustering_from_distmat/ commit a34052b87a2d05cabed5001c50f1bb10e74f97ee
iuc
parents:
diff
changeset
|
133 </conditional> |
8192b416f945
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/clustering_from_distmat/ commit a34052b87a2d05cabed5001c50f1bb10e74f97ee
iuc
parents:
diff
changeset
|
134 <output name="clustering_assignment" ftype="tabular" file="test_assignment_average_n4.tsv" /> |
8192b416f945
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/clustering_from_distmat/ commit a34052b87a2d05cabed5001c50f1bb10e74f97ee
iuc
parents:
diff
changeset
|
135 </test> |
8192b416f945
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/clustering_from_distmat/ commit a34052b87a2d05cabed5001c50f1bb10e74f97ee
iuc
parents:
diff
changeset
|
136 </tests> |
8192b416f945
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/clustering_from_distmat/ commit a34052b87a2d05cabed5001c50f1bb10e74f97ee
iuc
parents:
diff
changeset
|
137 <help><![CDATA[ |
8192b416f945
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/clustering_from_distmat/ commit a34052b87a2d05cabed5001c50f1bb10e74f97ee
iuc
parents:
diff
changeset
|
138 |
8192b416f945
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/clustering_from_distmat/ commit a34052b87a2d05cabed5001c50f1bb10e74f97ee
iuc
parents:
diff
changeset
|
139 .. class:: infomark |
8192b416f945
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/clustering_from_distmat/ commit a34052b87a2d05cabed5001c50f1bb10e74f97ee
iuc
parents:
diff
changeset
|
140 |
8192b416f945
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/clustering_from_distmat/ commit a34052b87a2d05cabed5001c50f1bb10e74f97ee
iuc
parents:
diff
changeset
|
141 **What it does** |
8192b416f945
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/clustering_from_distmat/ commit a34052b87a2d05cabed5001c50f1bb10e74f97ee
iuc
parents:
diff
changeset
|
142 |
8192b416f945
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/clustering_from_distmat/ commit a34052b87a2d05cabed5001c50f1bb10e74f97ee
iuc
parents:
diff
changeset
|
143 This tool lets you perform hierarchical clustering of samples using the `scipy.cluster.hierarchy.linkage`_ function and any of the clustering methods supported by it. |
8192b416f945
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/clustering_from_distmat/ commit a34052b87a2d05cabed5001c50f1bb10e74f97ee
iuc
parents:
diff
changeset
|
144 |
1
c0b01c55a0e0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/clustering_from_distmat/ commit 65b5c6f177478883ce664aeb6f27d0bec7155fdc
iuc
parents:
0
diff
changeset
|
145 As input it expects a symmetrical distance matrix with sample names on the first row and/or in the first column. |
0
8192b416f945
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/clustering_from_distmat/ commit a34052b87a2d05cabed5001c50f1bb10e74f97ee
iuc
parents:
diff
changeset
|
146 |
8192b416f945
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/clustering_from_distmat/ commit a34052b87a2d05cabed5001c50f1bb10e74f97ee
iuc
parents:
diff
changeset
|
147 The clustering result can be reported in the form of a dendrogram in newick format. |
8192b416f945
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/clustering_from_distmat/ commit a34052b87a2d05cabed5001c50f1bb10e74f97ee
iuc
parents:
diff
changeset
|
148 |
8192b416f945
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/clustering_from_distmat/ commit a34052b87a2d05cabed5001c50f1bb10e74f97ee
iuc
parents:
diff
changeset
|
149 Additionally, the tool can report the assignment of the samples to clusters "cut" from the clustering tree using the `scipy.cluster.hierarchy.cut_tree`_ function. |
8192b416f945
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/clustering_from_distmat/ commit a34052b87a2d05cabed5001c50f1bb10e74f97ee
iuc
parents:
diff
changeset
|
150 Reflecting the parameters of that function, you can specify *how* to cut the tree by specifying either the number of clusters to cut into or a distance threshold, i.e., the height at which to cut the tree as SciPy calls it. |
8192b416f945
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/clustering_from_distmat/ commit a34052b87a2d05cabed5001c50f1bb10e74f97ee
iuc
parents:
diff
changeset
|
151 |
8192b416f945
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/clustering_from_distmat/ commit a34052b87a2d05cabed5001c50f1bb10e74f97ee
iuc
parents:
diff
changeset
|
152 .. _`scipy.cluster.hierarchy.linkage`: https://docs.scipy.org/doc/scipy/reference/generated/scipy.cluster.hierarchy.linkage.html |
8192b416f945
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/clustering_from_distmat/ commit a34052b87a2d05cabed5001c50f1bb10e74f97ee
iuc
parents:
diff
changeset
|
153 .. _`scipy.cluster.hierarchy.cut_tree`: https://docs.scipy.org/doc/scipy/reference/generated/scipy.cluster.hierarchy.cut_tree.html |
8192b416f945
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/clustering_from_distmat/ commit a34052b87a2d05cabed5001c50f1bb10e74f97ee
iuc
parents:
diff
changeset
|
154 ]]></help> |
8192b416f945
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/clustering_from_distmat/ commit a34052b87a2d05cabed5001c50f1bb10e74f97ee
iuc
parents:
diff
changeset
|
155 <citations> |
8192b416f945
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/clustering_from_distmat/ commit a34052b87a2d05cabed5001c50f1bb10e74f97ee
iuc
parents:
diff
changeset
|
156 <citation type="doi">10.1038/s41592-019-0686-2</citation> |
8192b416f945
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/clustering_from_distmat/ commit a34052b87a2d05cabed5001c50f1bb10e74f97ee
iuc
parents:
diff
changeset
|
157 </citations> |
8192b416f945
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/clustering_from_distmat/ commit a34052b87a2d05cabed5001c50f1bb10e74f97ee
iuc
parents:
diff
changeset
|
158 </tool> |