15
TreeDyn Hands on 1 The purpose of this first hands on TreeDyn is simply to show very simply current operations you are probably familiar with using an other tree manipulation program such as njplot for example. In this document you will learn : How to open a newick file How to change the root of a tree How to swap clusters How to resize a tree How to search for leaves containing a series of characters How to label these leaves in a particular color How to label terminal branches of these leaves with a particular color How to save and print your work

TreeDyn Hands on 1 The purpose of this first hands on TreeDyn is simply to show very simply current operations you are probably familiar with using an

Embed Size (px)

Citation preview

Page 1: TreeDyn Hands on 1 The purpose of this first hands on TreeDyn is simply to show very simply current operations you are probably familiar with using an

TreeDyn Hands on 1

The purpose of this first hands on TreeDyn is simply to show very simply current operations you are probably familiar with using an other tree manipulation program such as njplot for example.

In this document you will learn :• How to open a newick file• How to change the root of a tree• How to swap clusters

• How to resize a tree

• How to search for leaves containing a series of characters• How to label these leaves in a particular color• How to label terminal branches of these leaves with a particular color

• How to save and print your work

Page 2: TreeDyn Hands on 1 The purpose of this first hands on TreeDyn is simply to show very simply current operations you are probably familiar with using an

Open a file, newick format

Drop down menu FileChoose Open

Select your file with the file selector

Clic on "Open" (ouvrir in french)

Page 3: TreeDyn Hands on 1 The purpose of this first hands on TreeDyn is simply to show very simply current operations you are probably familiar with using an

Resize the window to fit your needs

Treedyn automatically sizes the tree so that labels can be read (figure below).You can first resize the window, as shown on the right

Page 4: TreeDyn Hands on 1 The purpose of this first hands on TreeDyn is simply to show very simply current operations you are probably familiar with using an

Fit tree to windowNext, right clic on the tree to open a dialog windowChoose Navigation, Fit to window

But see "note" next slide !

This produces the tree on the right.

Now we want to choose a different root and swap some groupsFirst, choose the proper panel (red arrow)

Page 5: TreeDyn Hands on 1 The purpose of this first hands on TreeDyn is simply to show very simply current operations you are probably familiar with using an

Important note

When you right clic on a tree to obtain a panel menu to deal with the tree, you may obtain a panel mennu as shown on the right !

Its color is yellow indicating that you have opened a panel menu general to treedyn, not restricted to the tree you are using.

Close this panel and right clic on the tree itself, not on the window outside of the tree.

We will study this yellow panel later on.

Page 6: TreeDyn Hands on 1 The purpose of this first hands on TreeDyn is simply to show very simply current operations you are probably familiar with using an

Resizing a tree

TreeDyn contains a series of tools for tree resizing. They are grouped in the panel indicated by the red arrow, which allows to select the different tools as shown in the red box.When the mouse pass over a tool, a pop up help appears.In this example, we will select the tool shown by the mouse arrow and resize the previous tree to the following :

This was obtained with Shift-clic several times on the tree.

Not very confortable for reading the leaves labels, but perhaps more convenient for rooting and branch swapping...

Page 7: TreeDyn Hands on 1 The purpose of this first hands on TreeDyn is simply to show very simply current operations you are probably familiar with using an

Next choose the tools to re-rootSelect the branch leading to the outgroup chosen, the arrow turns into a hand, clic on the branch

The root is now located in a different place.

Lets swap two clusters

Page 8: TreeDyn Hands on 1 The purpose of this first hands on TreeDyn is simply to show very simply current operations you are probably familiar with using an

This time, we choose the first tool of this panel

Select a particular internal branchClic on it, the two clusters defined by this internal branch are interchanged.

Page 9: TreeDyn Hands on 1 The purpose of this first hands on TreeDyn is simply to show very simply current operations you are probably familiar with using an

Search for a leaf or a set of leaves.

DropDown menu View, Select Find Panel as shown belowThis open the Find panel as shown on the right

This panel allows to locate where a particular leaf is in the tree.

In this exemple, every leaf label is listed as indicated (red)

Simply double clic on a label to higlight the leaf (in red by default)

Page 10: TreeDyn Hands on 1 The purpose of this first hands on TreeDyn is simply to show very simply current operations you are probably familiar with using an

Search for one leaf

I have double clicked on 1300

By default, if you double click on an other leaf label, the previous highlights disappear (by default) and the second one is identified (red by default)

Page 11: TreeDyn Hands on 1 The purpose of this first hands on TreeDyn is simply to show very simply current operations you are probably familiar with using an

Search for several leaves

Search for every leaf whose label starts with 13 : enter 13* in the find boxHit Enter. All such leaves are now in red (by default).Note that *9 also works,as well as 1?3 and 9*8 !!!

Now, we may wish to use a different color than red.

From the drop down menu View, select "Parameters Panel".As shown on the right.

This opens the color selectorChoose a different color, either by clicking on the proper color (top) or by dragging the black dot to the proper place (red arrow)Now I have selected blue.

Page 12: TreeDyn Hands on 1 The purpose of this first hands on TreeDyn is simply to show very simply current operations you are probably familiar with using an

Going back to the Find panel and looking for 13* will now turned these leaves in blue

Good enough, but we want to conduct several searches, and have the result of each search in a different color.In the find panel, if you clic on reset (see on the right), you can see that by default, the option "automatic reset" is selected. In fact when selected this option erase the result of the previous search before diplaying the next result.Inactivate the "automatic reset"Now if I search first for 13* and then for 98*, I obtain the result below

Page 13: TreeDyn Hands on 1 The purpose of this first hands on TreeDyn is simply to show very simply current operations you are probably familiar with using an

Find panel, bouton Reset, Reset (as shown below) remove all highlights.

Search again for 98*, this labels leaves in blueOpen the color panel choose green :

Find leaves whose label starts with 13 :

The two find operations have their respective colors.

Page 14: TreeDyn Hands on 1 The purpose of this first hands on TreeDyn is simply to show very simply current operations you are probably familiar with using an

Highlights other features in a treeIn the find panel, hit the "operation button as shown below, and select for example "Node Foreground Color"

Use of the find panel as before, produces the following

Finally you can combined different colors and operations.

Page 15: TreeDyn Hands on 1 The purpose of this first hands on TreeDyn is simply to show very simply current operations you are probably familiar with using an

Save and export

Use drop down menu File, Save or Save as to save the tree with its conformation and colors in internal treedyn format.

Use drop down menu File, Export to export in many formats, including ps for making pdf file and various image formats

Below is an excerpt of a tree saved as jpeg and opened with paint in windows.

Finally, there is a print to print directly to your printer or producea ps or pdf file.