mapTrees: Map Gene Tree into Species Tree

View source: R/parseRec.R

mapTreesR Documentation

Map Gene Tree into Species Tree

Description

Maps a gene/protein tree into a species tree

Usage

mapTrees(path2rec)

Arguments

path2rec

path to the file containing the reconciliation output.

Details

Mapping gene tree into species tree allow to infer the sequence of events (Duplication, Speciation, Transfer).

Value

A list with three elements. The first one is a 'phylo' object where the nodelabels indicate the event: D, duplication or T transfer. If no label is shown is because the event correspond to speciation. The second element is a dataframe (the first column is the label of the internal nodes in the gene tree; the second column is the label of the internal nodes in the species tree, and the third and fourth columns label each internal node according to the inferred event). The third element of the list is an adjacency matrix: 1 when two proteins are orthologous, 0 if they are paralogous.

Examples

mapTrees(fs::path_package("extdata", "representatives", package = "orthGS"))

orthGS documentation built on June 8, 2025, 12:37 p.m.