annotate hexagram-6ae12361157c/hexagram/hexagram.xml~ @ 0:1407e3634bcf draft default tip

Uploaded r11 from test tool shed.
author adam-novak
date Tue, 22 Oct 2013 14:17:59 -0400
parents
children
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
0
1407e3634bcf Uploaded r11 from test tool shed.
adam-novak
parents:
diff changeset
1 <?xml version="1.0"?>
1407e3634bcf Uploaded r11 from test tool shed.
adam-novak
parents:
diff changeset
2 <tool id="hexagram" name="Hexagram Visualization" version="0.1">
1407e3634bcf Uploaded r11 from test tool shed.
adam-novak
parents:
diff changeset
3 <description>Interactive hex grid clustering visualization</description>
1407e3634bcf Uploaded r11 from test tool shed.
adam-novak
parents:
diff changeset
4 <requirements>
1407e3634bcf Uploaded r11 from test tool shed.
adam-novak
parents:
diff changeset
5 <!--
1407e3634bcf Uploaded r11 from test tool shed.
adam-novak
parents:
diff changeset
6 Go get the drl-graph-layout package as defined in
1407e3634bcf Uploaded r11 from test tool shed.
adam-novak
parents:
diff changeset
7 tool_dependencies.xml
1407e3634bcf Uploaded r11 from test tool shed.
adam-novak
parents:
diff changeset
8 -->
1407e3634bcf Uploaded r11 from test tool shed.
adam-novak
parents:
diff changeset
9 <requirement type="package" version="1.1">drl-graph-layout</requirement>
1407e3634bcf Uploaded r11 from test tool shed.
adam-novak
parents:
diff changeset
10 <!--
1407e3634bcf Uploaded r11 from test tool shed.
adam-novak
parents:
diff changeset
11 And go get some Python modules that aren't standard.
1407e3634bcf Uploaded r11 from test tool shed.
adam-novak
parents:
diff changeset
12 -->
1407e3634bcf Uploaded r11 from test tool shed.
adam-novak
parents:
diff changeset
13 <requirement type="python-module">numpy</requirement>
1407e3634bcf Uploaded r11 from test tool shed.
adam-novak
parents:
diff changeset
14 <requirement type="python-module">scipy</requirement>
1407e3634bcf Uploaded r11 from test tool shed.
adam-novak
parents:
diff changeset
15 </requirements>
1407e3634bcf Uploaded r11 from test tool shed.
adam-novak
parents:
diff changeset
16 <!--
1407e3634bcf Uploaded r11 from test tool shed.
adam-novak
parents:
diff changeset
17 This is the command to run as a Cheetah template.
1407e3634bcf Uploaded r11 from test tool shed.
adam-novak
parents:
diff changeset
18 We do fancy iteration over multiple score matrices (see
1407e3634bcf Uploaded r11 from test tool shed.
adam-novak
parents:
diff changeset
19 ../plotting/xy_plot.xml).
1407e3634bcf Uploaded r11 from test tool shed.
adam-novak
parents:
diff changeset
20 -->
1407e3634bcf Uploaded r11 from test tool shed.
adam-novak
parents:
diff changeset
21 <command interpreter="python">hexagram.py
1407e3634bcf Uploaded r11 from test tool shed.
adam-novak
parents:
diff changeset
22 #for $i, $s in enumerate( $similarity )
1407e3634bcf Uploaded r11 from test tool shed.
adam-novak
parents:
diff changeset
23 "${s.similarity_matrix.file_name}"
1407e3634bcf Uploaded r11 from test tool shed.
adam-novak
parents:
diff changeset
24 #end for
1407e3634bcf Uploaded r11 from test tool shed.
adam-novak
parents:
diff changeset
25 #for $i, $s in enumerate ($similarity)
1407e3634bcf Uploaded r11 from test tool shed.
adam-novak
parents:
diff changeset
26 --names "${s.similarity_matrix.name}"
1407e3634bcf Uploaded r11 from test tool shed.
adam-novak
parents:
diff changeset
27 #end for
1407e3634bcf Uploaded r11 from test tool shed.
adam-novak
parents:
diff changeset
28 #for $i, $s in enumerate( $scores )
1407e3634bcf Uploaded r11 from test tool shed.
adam-novak
parents:
diff changeset
29 --scores "${s.score_matrix.file_name}"
1407e3634bcf Uploaded r11 from test tool shed.
adam-novak
parents:
diff changeset
30 #end for
1407e3634bcf Uploaded r11 from test tool shed.
adam-novak
parents:
diff changeset
31 #if $query:
1407e3634bcf Uploaded r11 from test tool shed.
adam-novak
parents:
diff changeset
32 --query "$query"
1407e3634bcf Uploaded r11 from test tool shed.
adam-novak
parents:
diff changeset
33 #end if
1407e3634bcf Uploaded r11 from test tool shed.
adam-novak
parents:
diff changeset
34 #if $colormaps
1407e3634bcf Uploaded r11 from test tool shed.
adam-novak
parents:
diff changeset
35 --colormaps "$colormaps"
1407e3634bcf Uploaded r11 from test tool shed.
adam-novak
parents:
diff changeset
36 #end if
1407e3634bcf Uploaded r11 from test tool shed.
adam-novak
parents:
diff changeset
37 --html "$output"
1407e3634bcf Uploaded r11 from test tool shed.
adam-novak
parents:
diff changeset
38 --directory "$output.files_path"
1407e3634bcf Uploaded r11 from test tool shed.
adam-novak
parents:
diff changeset
39 --truncation_edges $edges
1407e3634bcf Uploaded r11 from test tool shed.
adam-novak
parents:
diff changeset
40 #if $singletons
1407e3634bcf Uploaded r11 from test tool shed.
adam-novak
parents:
diff changeset
41 --include-singletons
1407e3634bcf Uploaded r11 from test tool shed.
adam-novak
parents:
diff changeset
42 #end if
1407e3634bcf Uploaded r11 from test tool shed.
adam-novak
parents:
diff changeset
43 #if $nostats
1407e3634bcf Uploaded r11 from test tool shed.
adam-novak
parents:
diff changeset
44 --no-stats
1407e3634bcf Uploaded r11 from test tool shed.
adam-novak
parents:
diff changeset
45 #end if
1407e3634bcf Uploaded r11 from test tool shed.
adam-novak
parents:
diff changeset
46 </command>
1407e3634bcf Uploaded r11 from test tool shed.
adam-novak
parents:
diff changeset
47 <inputs>
1407e3634bcf Uploaded r11 from test tool shed.
adam-novak
parents:
diff changeset
48 <repeat name="similarity" title="Similarity Matrices">
1407e3634bcf Uploaded r11 from test tool shed.
adam-novak
parents:
diff changeset
49 <param name="similarity_matrix" type="data" format="tabular"
1407e3634bcf Uploaded r11 from test tool shed.
adam-novak
parents:
diff changeset
50 label="Similarity matrix of signatures to visualize"/>
1407e3634bcf Uploaded r11 from test tool shed.
adam-novak
parents:
diff changeset
51 </repeat>
1407e3634bcf Uploaded r11 from test tool shed.
adam-novak
parents:
diff changeset
52 <repeat name="scores" title="Scores">
1407e3634bcf Uploaded r11 from test tool shed.
adam-novak
parents:
diff changeset
53 <param name="score_matrix" type="data" format="tabular"
1407e3634bcf Uploaded r11 from test tool shed.
adam-novak
parents:
diff changeset
54 label="Score matrix for signatures to visualize"/>
1407e3634bcf Uploaded r11 from test tool shed.
adam-novak
parents:
diff changeset
55 </repeat>
1407e3634bcf Uploaded r11 from test tool shed.
adam-novak
parents:
diff changeset
56 <param name="colormaps" type="data" format="text" optional="true"
1407e3634bcf Uploaded r11 from test tool shed.
adam-novak
parents:
diff changeset
57 label="Colormap configuration file"/>
1407e3634bcf Uploaded r11 from test tool shed.
adam-novak
parents:
diff changeset
58 <param name="edges" type="integer" value="10"
1407e3634bcf Uploaded r11 from test tool shed.
adam-novak
parents:
diff changeset
59 label="Number of edges to use per node"/>
1407e3634bcf Uploaded r11 from test tool shed.
adam-novak
parents:
diff changeset
60 <param name="query" type="text"
1407e3634bcf Uploaded r11 from test tool shed.
adam-novak
parents:
diff changeset
61 label="Name of query signature"
1407e3634bcf Uploaded r11 from test tool shed.
adam-novak
parents:
diff changeset
62 help="A signature name, or empty for no query"/>
1407e3634bcf Uploaded r11 from test tool shed.
adam-novak
parents:
diff changeset
63 <param name="singletons" type="boolean"
1407e3634bcf Uploaded r11 from test tool shed.
adam-novak
parents:
diff changeset
64 label="Keep unconnected singleton signatures"/>
1407e3634bcf Uploaded r11 from test tool shed.
adam-novak
parents:
diff changeset
65 <param name="nostats" type="boolean"
1407e3634bcf Uploaded r11 from test tool shed.
adam-novak
parents:
diff changeset
66 label="Skip calculation of heatmap clumpiness statistics"/>
1407e3634bcf Uploaded r11 from test tool shed.
adam-novak
parents:
diff changeset
67 </inputs>
1407e3634bcf Uploaded r11 from test tool shed.
adam-novak
parents:
diff changeset
68 <outputs>
1407e3634bcf Uploaded r11 from test tool shed.
adam-novak
parents:
diff changeset
69 <data name="output" label="Hexagram Visualization($edges edges)"
1407e3634bcf Uploaded r11 from test tool shed.
adam-novak
parents:
diff changeset
70 format="html" hidden="false"/>
1407e3634bcf Uploaded r11 from test tool shed.
adam-novak
parents:
diff changeset
71 </outputs>
1407e3634bcf Uploaded r11 from test tool shed.
adam-novak
parents:
diff changeset
72 <stdio>
1407e3634bcf Uploaded r11 from test tool shed.
adam-novak
parents:
diff changeset
73 <!--
1407e3634bcf Uploaded r11 from test tool shed.
adam-novak
parents:
diff changeset
74 The tool catches all errors and returns 1, or 0 if no errors
1407e3634bcf Uploaded r11 from test tool shed.
adam-novak
parents:
diff changeset
75 happened.
1407e3634bcf Uploaded r11 from test tool shed.
adam-novak
parents:
diff changeset
76 -->
1407e3634bcf Uploaded r11 from test tool shed.
adam-novak
parents:
diff changeset
77 <exit_code range="1" level="fatal"
1407e3634bcf Uploaded r11 from test tool shed.
adam-novak
parents:
diff changeset
78 description="Error in visualization generator (see below)" />
1407e3634bcf Uploaded r11 from test tool shed.
adam-novak
parents:
diff changeset
79 <exit_code range="2:" level="fatal" description="Unhandleable error" />
1407e3634bcf Uploaded r11 from test tool shed.
adam-novak
parents:
diff changeset
80 </stdio>
1407e3634bcf Uploaded r11 from test tool shed.
adam-novak
parents:
diff changeset
81 <help>
1407e3634bcf Uploaded r11 from test tool shed.
adam-novak
parents:
diff changeset
82
1407e3634bcf Uploaded r11 from test tool shed.
adam-novak
parents:
diff changeset
83 Hexagram Visualization
1407e3634bcf Uploaded r11 from test tool shed.
adam-novak
parents:
diff changeset
84 ======================
1407e3634bcf Uploaded r11 from test tool shed.
adam-novak
parents:
diff changeset
85
1407e3634bcf Uploaded r11 from test tool shed.
adam-novak
parents:
diff changeset
86 This tool produces a "hexagram visualization": an interactive Google Maps-based two-dimensional layout of the similarity matrix data, on a hexagonal grid, with the score matrix data represented as different available colorings of the hexagons. This visualization is an HTML web page with associated support files, and appears as the tool's output in your Galaxy history; to open it, click on the eyeball icon.
1407e3634bcf Uploaded r11 from test tool shed.
adam-novak
parents:
diff changeset
87
1407e3634bcf Uploaded r11 from test tool shed.
adam-novak
parents:
diff changeset
88 If, instead of a rich interactive Web application, you get a boring white page with some text on it, you probably have tool output sanitization on. Turn sanitization off in your universe_wsgi.ini, or download the visualization, unzip it, and open the HTML file it contains. If you want to use a downloaded visualization, you will need to open it in a browser other than Chrome (which, for security reasons, does not let local Web pages access local files programmatically).
1407e3634bcf Uploaded r11 from test tool shed.
adam-novak
parents:
diff changeset
89
1407e3634bcf Uploaded r11 from test tool shed.
adam-novak
parents:
diff changeset
90 Input Format
1407e3634bcf Uploaded r11 from test tool shed.
adam-novak
parents:
diff changeset
91 ------------
1407e3634bcf Uploaded r11 from test tool shed.
adam-novak
parents:
diff changeset
92
1407e3634bcf Uploaded r11 from test tool shed.
adam-novak
parents:
diff changeset
93 The tool takes three types of input files:
1407e3634bcf Uploaded r11 from test tool shed.
adam-novak
parents:
diff changeset
94
1407e3634bcf Uploaded r11 from test tool shed.
adam-novak
parents:
diff changeset
95 Similarity Matrix
1407e3634bcf Uploaded r11 from test tool shed.
adam-novak
parents:
diff changeset
96 +++++++++++++++++
1407e3634bcf Uploaded r11 from test tool shed.
adam-novak
parents:
diff changeset
97
1407e3634bcf Uploaded r11 from test tool shed.
adam-novak
parents:
diff changeset
98 The only required input file is a *similarity matrix*, which contains similarity information over a set of "samples" or "signatures". This file is a sparse matrix represented as three tab-delimited columns; the first two columns of each row contain the names of two signatures, and the last column contains a nonzero, non-negative floating-point "similarity" between them. No headers are used. Self-edges are permitted, and self-edges with a similarity of 1 will be added to every node if "Keep unconnected singleton signatures" is checked. The input similarity matrix need not describe a similarity graph that is connected, and similarity need not be transitive in any way.
1407e3634bcf Uploaded r11 from test tool shed.
adam-novak
parents:
diff changeset
99
1407e3634bcf Uploaded r11 from test tool shed.
adam-novak
parents:
diff changeset
100 Score Matrices
1407e3634bcf Uploaded r11 from test tool shed.
adam-novak
parents:
diff changeset
101 ++++++++++++++
1407e3634bcf Uploaded r11 from test tool shed.
adam-novak
parents:
diff changeset
102
1407e3634bcf Uploaded r11 from test tool shed.
adam-novak
parents:
diff changeset
103 You almost certainly want to run the tool with one or more *score matrices*, which specify some attribute data to overlay on the signature hexes once they are arranged. Any number of score matrices can be specified. Each score matrix is a TSV file; the first column contains sample names, and any other columns contain the values of attributes for those samples. Score matrices have a header line, which specifies some (unused) name for the column of sample names, and the name of the attribute described by each column of attribute data.
1407e3634bcf Uploaded r11 from test tool shed.
adam-novak
parents:
diff changeset
104
1407e3634bcf Uploaded r11 from test tool shed.
adam-novak
parents:
diff changeset
105 Attribute data may be continuous (floating-point numbers), categorical (non-negative integers), or binary (0 or 1). The visualizer assumes that each column is the most restrictive type that will fit the data given; a column with all 0.0s and 1.0s will be assumed to be binary, even if the user intended it to represent a continuous value. Categories in categorical columns are assumed to be numbered from 0, even if no 0s appear in the column.
1407e3634bcf Uploaded r11 from test tool shed.
adam-novak
parents:
diff changeset
106
1407e3634bcf Uploaded r11 from test tool shed.
adam-novak
parents:
diff changeset
107 Colormap Configuration File
1407e3634bcf Uploaded r11 from test tool shed.
adam-novak
parents:
diff changeset
108 +++++++++++++++++++++++++++
1407e3634bcf Uploaded r11 from test tool shed.
adam-novak
parents:
diff changeset
109
1407e3634bcf Uploaded r11 from test tool shed.
adam-novak
parents:
diff changeset
110 If you have categorical data to display, you probably want to write a *colormap configuration file* for it. Categorical data is displayed in the visualizer with one color per category; if you want to specify particular colors for each category, or names for each category (instead of the default labels of 0 through n), you need a colormap configuration file. Each line in this file should begin with the name of a categorical attribute, followed by, for each category used in that attribute, the category number, the desired name for the category, and a CSS color (like "white" or "#FFFFFF" or "rgb(255,255,255)) to use to represent that category. Fields on each line are separated by tab characters.
1407e3634bcf Uploaded r11 from test tool shed.
adam-novak
parents:
diff changeset
111
1407e3634bcf Uploaded r11 from test tool shed.
adam-novak
parents:
diff changeset
112 </help>
1407e3634bcf Uploaded r11 from test tool shed.
adam-novak
parents:
diff changeset
113 </tool>
1407e3634bcf Uploaded r11 from test tool shed.
adam-novak
parents:
diff changeset
114