I-DEEL: Inter-Disciplinary Ecology and Evolution Lab
  • Home
  • People
  • Research
  • Publications
  • Open Science
    • Registrations
    • Registered Reports
    • Published Protocols
    • Preprints
    • EDI
    • Other
  • Opportunities
  • Links
  • Blog

Around meta-analysis (9): getting a phylogenetic tree

31/5/2016

0 Comments

 
Picture
by Malgorzata (Losia) Lagisz

After a long blogging break, due to moving from Dunedin, NZ, to Sydney, AU, I am re-starting my series of blogs related to meta-analysis. Earlier blog posts from this series are archived as pdf files on my personal page.
 
Meta-analysis on data from multiple species often requires taking phylogenetic relatedness among these species into account. For meta-analysis you should use a phylogenetic / taxonomic tree that is:
1. binary (strictly bifurcating = no polytomies),
2. rooted (most basal ancestor is specified),
3. branch lengths (divergence measures) are optional,
4. tip labels on the tree match exactly with species names in the meta-analytic data set.
 
There are several ways of obtaining a tree for a set of species in hand. Here, I present the simplest way, which should work in most cases, unless there are some rarely investigated species in your dataset.
 
Until recently we have usually used the Interactive Tree of Life, but the service “other trees” got discontinued there. Instead, we can now use NCBI Taxonomy Common Tree.

Here are some tips on how to use it:

  • The input box at the top of the page allows searching for each species name separately, but it is quicker to upload a list of the binomial Latin species names from a text file (.txt). Press “Browse” button and choose your .txt file (one species name per row, with spaces between name parts, no other characters needed). Press "Add from file" button. If successful, a taxonomic tree of the uploaded species will appear after a while, depending on the tree size.
  • To export the tree, select "phylip tree" from the "text tree" box and then press "Save as" button, which will prompt saving the tree as a binary file. The resulting text file "phyliptree.phy" shuold contain Newick-like tree with node labels and taxonomic distances.
  • Using text editor remove all " ' ", and replace spaces " " with underscores "_". Now, the file can be uploaded into R using ape package.
  • After obtaining the scaffold taxonomic tree from NCBI you can continue working in R to plot the tree, resolve polytomies and add missing species (e.g. by grafting), if needed.
  • Polytomies can be resolved using existing phylogenetic information from other sources (e.g. published phylogenies) or at random (generally not recommended).
  • When making the tree there are a few common problems with species names that you should be aware of: typos, scientific name synonyms, subspecies names. These problems may result in failure to retrieve the tree from the online databases. Thus, if any errors occur in the process, names need to be re-checked, corrected or substituted with synonyms or close relatives.

Good luck!

0 Comments

    Author

    Posts are written by our group members and guests.

    Archives

    February 2023
    January 2023
    December 2022
    November 2022
    October 2022
    September 2022
    August 2022
    July 2022
    June 2022
    May 2022
    April 2022
    March 2022
    February 2022
    January 2022
    December 2021
    November 2021
    October 2021
    September 2021
    August 2021
    July 2021
    June 2021
    April 2021
    March 2021
    February 2021
    January 2021
    December 2020
    November 2020
    August 2020
    July 2020
    June 2020
    April 2020
    December 2019
    November 2019
    October 2019
    September 2019
    June 2019
    April 2019
    March 2019
    February 2019
    January 2019
    December 2018
    November 2018
    October 2018
    September 2018
    August 2018
    July 2018
    June 2018
    May 2018
    March 2018
    January 2018
    December 2017
    October 2017
    September 2017
    July 2017
    June 2017
    May 2017
    April 2017
    March 2017
    January 2017
    October 2016
    August 2016
    July 2016
    June 2016
    May 2016
    March 2016

    Categories

    All

    RSS Feed

HOME
PEOPLE
RESEARCH
PUBLICATIONS
OPEN SCIENCE
OPPORTUNITIES
LINKS
BLOG

Created by Losia Lagisz, last modified on June 24, 2015