Skip to content

Commit

Permalink
documentation update, more examples
Browse files Browse the repository at this point in the history
  • Loading branch information
Lukasz Kreft committed Jan 27, 2017
1 parent 2a46ff6 commit c3eefab
Show file tree
Hide file tree
Showing 26 changed files with 11,657 additions and 35,471 deletions.
4 changes: 2 additions & 2 deletions dist.js
Original file line number Diff line number Diff line change
Expand Up @@ -3,11 +3,11 @@ var compressor = require('node-minify');
compressor.minify({
compressor: 'gcc',
input: 'js/phyd3.*.js',
output: 'js/phyd3.min.js'
output: '/tmp/phyd3.min.js'
}).then(function(min) {
compressor.minify({
compressor: 'no-compress',
input: 'js/*.min.js',
input: ['js/*.min.js', '/tmp/phyd3.min.js'],
output: 'dist/js/phyd3.min.js'
});
});
Expand Down
2 changes: 1 addition & 1 deletion dist/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@
showNodesType: "only leaf",
showPhylogram: false,
showTaxonomy: true,
showFullTaxonomy: true,
showFullTaxonomy: false,
showSequences: true,
showTaxonomyColors: true,
backgroundColor: "#f5f5f5",
Expand Down
187 changes: 93 additions & 94 deletions dist/js/phyd3.min.js

Large diffs are not rendered by default.

8 changes: 4 additions & 4 deletions documentation.html
100755 → 100644
Original file line number Diff line number Diff line change
Expand Up @@ -65,7 +65,7 @@ <h3><a class="no-decoration" name="extended+phyloXML">Extended phyloXML</a></h3>
You can specify the taxonomy name, color and URL in the &lt;taxonomies&gt; section of extended phyloXML.<br />
These information will be displayed on the tree, in node infobox as well as used for taxonomy colorization.<br />
The taxonomy codes must match ones used in phylogeny. Use HEX values for colors (0xRRGGBB). Use full URL for links (starting with http://).<br />
See the example below.
See the code below and also <a href="http://10.10.10.10/lkreft/phyd3/view.php?id=taxonomy.xml&f=xml">working example</a>.
<pre>
&lt;phyloxml xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://www.phyloxml.org"
xsi:schemaLocation="http://www.phyloxml.org http://www.phyloxml.org/1.10/phyloxml.xsd"&gt;
Expand Down Expand Up @@ -93,7 +93,7 @@ <h3><a class="no-decoration" name="extended+phyloXML">Extended phyloXML</a></h3>
You can specify domain description, color and URL in the &lt;domains&gt; section of extended phyloXML.<br />
These information will be displayed on the tree, in node infobox as well as used for domain colorization.<br />
The domain codes must match ones used in phylogeny. Use HEX values for colors (0xRRGGBB). Use full URL for links (starting with http://).<br />
See the example below.
See the code below and also <a href="http://10.10.10.10/lkreft/phyd3/view.php?id=domains.xml&f=xml">working example</a>.
<pre>
&lt;phyloxml xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://www.phyloxml.org"
xsi:schemaLocation="http://www.phyloxml.org http://www.phyloxml.org/1.10/phyloxml.xsd"&gt;
Expand Down Expand Up @@ -130,7 +130,7 @@ <h3><a class="no-decoration" name="extended+phyloXML">Extended phyloXML</a></h3>
It is possible to display on the tree additional node labels. Those labels can be created from existing node properties or other tags. <br />
There are two kinds of labels: text labels and color labels.<br />
To specify which properties to show use &lt;labels&gt; section in extended phyloXML. Type can be either text or color. Data tag and ref must match the intended clade property to be displayed. Use HEX values for colors (0xRRGGBB).<br />
See the example below.
See the code below and also <a href="http://10.10.10.10/lkreft/phyd3/view.php?id=labels.xml&f=xml">working example</a>.
<pre>
&lt;phyloxml xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://www.phyloxml.org"
xsi:schemaLocation="http://www.phyloxml.org http://www.phyloxml.org/1.10/phyloxml.xsd"&gt;
Expand Down Expand Up @@ -167,7 +167,7 @@ <h3><a class="no-decoration" name="extended+phyloXML">Extended phyloXML</a></h3>
<li><b>legend</b> - for each value series of your data, you need to specify the legend field; for each field you need to put field name (which will be displayed to the user in legend and infobox popup), color that will be used to draw this series (for all graph types besides heatmap) and for binary graph also a symbol shape (one of circle); additionally for heatmap you need to specify which gradient spec to use (name &amp; classes following the <a href="http://colorbrewer2.org/" target="_blank">ColorBrewer2</a>)
<li><b>data</b> - for each clade id you wish to display the graph for, you need to include data values, ordered in series defined in legend; you can also use existing tags or properties from phylogeny tree, referencing them by tag and ref attributes of data tag; to turn single values into pie charts use <b>min</b> and <b>max</b> tags inside <b>data</b> tag.
</ol>
See the example below.
See the code below and also working examples of <a href="http://10.10.10.10/lkreft/phyd3/view.php?id=outergraphs.xml&f=xml">leaf node graphs</a> or <a href="http://10.10.10.10/lkreft/phyd3/view.php?id=innergraphs.xml&f=xml">inner node graphs</a>.
<pre>
&lt;phyloxml xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://www.phyloxml.org"
xsi:schemaLocation="http://www.phyloxml.org http://www.phyloxml.org/1.10/phyloxml.xsd"&gt;
Expand Down
Empty file modified fetch.php
100755 → 100644
Empty file.
Empty file modified img/BITS.png
100755 → 100644
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Empty file modified index.html
100755 → 100644
Empty file.
Loading

0 comments on commit c3eefab

Please sign in to comment.