Skip to content
Steve Bond edited this page Apr 7, 2021 · 8 revisions

--display_trees, -dt

Description

FigTree support implemented in version 1.4

Output trees one-by-one to your system's SVG viewer (might be your web browser, InkScape, Illustrator, or something else, depending on your system settings), or send directly to FigTree.

Argument

'figtree'

Optional. Pass in the word 'figtree' to display the trees in FigTree. This requires that FigTree is both installed on your computer and accessible in your $PATH. For Debian-style Linux users, apt-get install figtree should set you up just fine.

For Mac users it's a bit more complicated. Install the .dmg and then create a little bash script called figtree with the following contents:

#!/usr/bin/env sh
java -jar /Applications/FigTree\ v1.4.4.app/Contents/Resources/Java/figtree.jar $@

Note that the path to the FigTree jar file, above, includes a version number that might change, so check that the path is actually correct! Make the file executable and place it in your $PATH:

$: chmod +x figtree
$: mv figtree /usr/local/bin/

If you're on Windows, there isn't currently FigTree support. If you actually want support on Windows then it becomes worth while trying to add it, so just leave a message in the issue tracker.

Examples

Input file: tree.nwk

((A,(B,C)),(D,E));
(((Mouse,Rat),(Cat,Dog)),Finch);

Usage example 1

$: pb tree.nwk -dt

Output

In the console, you will be given a prompt to continue. If you have multiple trees to view, hitting 'enter' will bring up the next tree.

Usage example 2

$: pb tree.nwk -dt figtree

Output

Notice the red arrow? FigTree will load up multiple trees, so you can navigate through them with the little arrow buttons.

Main Toolkit Pages





Further Reading

Clone this wiki locally