Geneplast is designed for evolutionary and plasticity analysis based on orthologous groups distribution in a given species tree. It uses Shannon information theory and orthologs abundance to estimate the Evolutionary Plasticity Index. Additionally, it implements the Bridge algorithm to determine the evolutionary root of a given gene based on its orthologs distribution
Geneplast is designed for evolutionary and plasticity analysis based on the distribuion of orthologous groups in a given species tree. It uses Shannon information theory to estimate the Evolutionary Plasticity Index (EPI) (Dalmolin et al. 2011, Castro et al. (2008)).
Figure 1 shows a toy example to illustrate the analysis. The observed itens in Figure 1a are distributed evenly among the different species (i.e. high diversity), while Figure 1b shows the opposite case. The diversity is given by the normalized Shannon’s diversity and represents the distribution of orthologous and paralogous genes in a set of species. High diversity represents an homogeneous distribution among the evaluated species, while low diversity indicates that few species concentrate most of the observed orthologous genes.
The EPI characterizes the evolutionary history of a given orthologous group (OG). It accesses the distribution of orthologs and paralogs and is defined as,
where Dα represents the OG abundance and Hα the OG diversity. Low values of Dα combined with high values for Hα indicates an orthologous group of low plasticity, that is, few OG members distributed over many species. It also indicates that the OG might have experienced few modifications (i.e. duplication and deletion episodes) during the evolution. Note that 0 ≤ Hα ≤ 1 and Dα ≥ 1. As a result, 0 ≤ EPI ≤ 1. For further information about the EPI, please see (Dalmolin et al. 2011).
Figure 1. Toy examples showing the distribution of orthologous and paralogous genes in a given species tree. (a) OG of low abundance Dα, high diversity (Hα) and consequently low plasticity (PI). In this hypothetical case, the OG comprises orthologous genes observed in all species, without apparent deletion or duplication episodes. (b) in this example the OG is observed in many species, but not all, with many paralogs in some of them. Green numbers represents the number of orthologous genes in each species.
geneplast also implements a new algorithm called Bridge in order to interrogate the evolutionary root of a given gene based on the distribution of its orthologs. The Bridge algorithm assesses the probability that an ortholog of a given gene is present in each last common ancestor (LCA) of a given species (in a given species tree). As a result, this approach infers the evolutionary root representing the gene emergence. The method is designed to deal with large scale queries in order to interrogate, for example, all genes annotated in a network (please refer to (Castro et al. 2008) for a case study illustrating the advantages of using this approach).
To illustrate the rooting inference consider the evolutionary scenarios presented in Figure 2 for the same hypothetical OGs. These OGs comprise a number of orthologous genes distributed among 13 species, and the pattern of presence or absence is indicated by green and grey colours, respectively. Observe that at least one ortholog is present in all extant species in Figure 2a. To explain this common genetic trait, one possible evolutionary scenario could assume that the ortholog was present in the LCA of all species and was genetically transmitted up to the descendants. For this case, the evolutionary root might be placed at the bottom of the species tree (i.e. node g). The same reasoning can be done in Figure 2b, but with the evolutionary root placed at node d. The geneplast rooting pipeline is designed to infer the most consistent rooting scenario for the observed orthologs in a given species tree. The pipeline provides a consistency score called Dscore which estimates the stability of the inferred root, as well as an associated empirical p-value computed by permutation analysis.
Figure 2. Possible evolutionary rooting scenarios for the same toy examples depitected in Figure 1. (a, b) Red circles indicate the evolutionary roots that best explain the observed orthologs in this species tree.
The orthology data required to run geneplast is available in the gpdata.gs dataset. This dataset includes four objects containing information about Clusters of Orthologous Groups derived from the STRING database, release 9.1. geneplast can also be used with other sources of orthology information, provided that the input is set according to the gpdata.gs data structure (note: in order to reduce the processing time this example uses a subset of the STRING database).
The first step is to create an OGP object by running the
gplast.preprocess function. This example uses 121 eukaryotic species from the STRING database and all OGs mapped to the genome stabilty gene network (Castro et al. 2008). Next, the
gplast function perform the plasticity analysis and the
gplast.get returns the results:
1 - Create an object of class
ogp <- gplast.preprocess(cogdata=cogdata, sspids=sspids, cogids=cogids, verbose=FALSE)
2 - Run the
ogp <- gplast(ogp, verbose=FALSE)
3 - Get results.
res <- gplast.get(ogp,what="results") head(res)
##  abundance diversity plasticity ## <0 rows> (or 0-length row.names)
The results are returned in a 3-column
data.frame with OG ids (cogids) identified in
row.names. Columns are named as abundance, diversity, and plasticity.
The metric abundance simply indicates the ratio of orthologs and paralogs by species. For example, KOG0011 cromprises 201 genes distributed in 116 eukaryotic species, with a resulting abundance of 1.7328. Abundance of 1 indicates an one-to-one orthology relationship, while high abundance denotes many duplication episodes on the OG’s evolutionary history. Diversity is obtained applying normalized Shannon entropy on orthologous distribution and Plasticity is obtained by EPI index, as described equation (1).
The rooting analysis starts with an
OGR object by running the
groot.preprocess function. This example uses all OGs mapped to the genome stability gene network using H. sapiens as reference species (Castro et al. 2008) and is set to perform 100 permutations for demonstration purposes (for a full analysis, please set
Permutations≥1000). Next, the
groot function performs the rooting analysis and the results are retrieved by
groot.get, which returns a
data.frame listing the root of each OG evaluated by the
groot method. The pipeline also returns the inconsistency score, which estimates the stability of the rooting analysis, as well as the associated empirical p-value. Additionally, the
groot.plot function allows the visualization of the inferred root for a given OG (e.g. Figure 3) and the LCAs for the reference species (Figure 4).
1 - Create an object of class OGR.
ogr <- groot.preprocess(cogdata=cogdata, phyloTree=phyloTree, spid="9606", cogids=cogids, verbose=FALSE)
2 - Run the groot function.
set.seed(1) ogr <- groot(ogr, nPermutations=100, verbose=FALSE)
3 - Get results.
res <- groot.get(ogr,what="results") head(res)
## Root Dscore Pvalue AdjPvalue ## NOG251516 3 0.67 1.53e-07 2.17e-05 ## NOG80202 4 1.00 2.15e-10 3.06e-08 ## NOG72146 6 0.82 9.44e-07 1.34e-04 ## NOG44788 6 0.56 8.51e-05 1.21e-02 ## NOG39906 7 1.00 6.55e-08 9.30e-06 ## NOG45364 9 0.83 2.13e-05 3.03e-03
4 - Check the inferred root of a given OG
## PDF file 'gproot_NOG40170_9606LCAs.pdf' has been generated!
5 - Visualization of the LCAs for the reference species in the analysis (i.e. H. sapiens)
groot.plot(ogr,plot.lcas = TRUE)
## PDF file 'gproot_9606LCAs.pdf' has been generated!