A Foswiki integration of the
PhyloWidget phylogeny browser
%META:TOPICINFO{author="TemiV" comment="reprev" date="1306970937" format="1.1" reprev="16" version="3"}%
Parameter: |
Description: |
Default: |
"Web.Topic" |
Topic name whose content is either in nexus format or has an nexus file attachment. |
- |
attachment="example.nex" |
A nexus formatted file attachment. |
- |
url="www.treebase.org/nexus.nex" |
Url to an external resource can be included in this parameter. |
- |
height="800" |
Sets the height of the PhyloWidget applet. |
- |
width="600" |
Sets the width of the PhyloWidget applet. |
- |
genus |
Mention the genus of the displayed tree. It is important if the clade information is to be displayed. |
- |
* Examples:
%PHYLOWIDGET{"%SYSTEMWEB%.PhyloWidgetExample"
height="495"
width="420"}%
* Result (if installed):
%PHYLOWIDGET{"System.PhyloWidgetExample"
height="495"
width="420"
useBranchLengths="true"
}%
See also:
PhyloWidgetPlugin,
NEXUSTREES
%META:TOPICINFO{author="ProjectContributor" format="1.1" version="$Rev$"}%
NEXUSTREES{"Topic"} -- display phylogeny
* NEXUSTREES macro is used to view the tree block of a nexus file. It contains two panel. The left panel display
PhyloWidget applet. The right panel contains a clickable tree list. In order for
PhyloWidget to render the tree, click on the tree name.
* Syntax:
%NEXUSTREES{"Web.Topic"
attachment="example.nex"
header="<h3>Tree List</h3>$n"
format=" * $treeid $treeName"
footer="<h3>End</h3>"
separator="$n"
}%
* Supported parameters:
Parameter: |
Description: |
Default: |
"Web.Topic" |
Topic name whose content is either in nexus format or has an nexus file attachment. |
- |
attachment="example.nex" |
A nexus formatted file attachment. |
- |
header="<h3>Tree List</h3>$n" |
String that will decorate the value of format parameter. |
- |
format=" * $treeid $treeName" |
This string is repeated according to the number of trees in the nexus file. $treeid & $treeName are replace with serial number and tree name. |
- |
footer="<h3>End</h3>" |
String that will decorate the value of format parameter. |
- |
separator="$n" |
This value is used to separate format parameter values. It can contain Foswiki recognised parameters. |
- |
* Examples 1:
%NEXUSTREES{"%SYSTEMWEB%/PhyloWidgetExample"
attachment="Tree.nex"
header="<h3>Tree List</h3>$n"
format=" * <a href='%SCRIPTURL{"rest"}%/PhyloWidgetPlugin/getNHX?web=System;topic=System.PhyloWidgetExample;attachment=Tree.nex;tree=$treeid'>$treeName</a>"
footer="<h3>***********</h3>"
separator="$n"
}%
Known Issues
If the tree to be displayed is not public (requires authentication), you must make sure the website uses Apache Authentication. For example, if the tree is hosted on secure Foswiki instance, make sure that you have configured the site using the setting
{LoginManager} = ApacheLogin
.
You could also run into trouble if the secure website holding the tree has a self signed certificate, or if the certificate is signed by an authority unknown to Java. In such cases, add the certificate to JRE keystore using keytool command.
Installation
You do not need to install anything in the browser to use this extension. The following instructions are for the administrator who installs the extension on the server.
Open configure, and open the "Extensions" section. Use "Find More Extensions" to get a list of available extensions. Select "Install".
If you have any problems, or if the extension isn't available in
configure
, then you can still install manually from the command-line. See
http://foswiki.org/Support/ManuallyInstallingExtensions for more help.
Plugin Info