map: Map the expression distance onto a given tree topology

Description Usage Arguments Value Examples

Description

This function computes the least squares brach lengths on a tree with known topology and a distance matrix. Borrowed something from "phytools" package.

Usage

1
map.ls(phy, D)

Arguments

phy

a phylogenetic tree

D

a distance matrix has row&column names corresponded to tip labels

Value

mapped tree and the sum of squares residual error (Q-score)

Examples

1
2
map.tree <- map.ls(phy, D)
attr(map.tree, "Q-score")

HangRuan1912/phyExp documentation built on July 15, 2019, 9:01 p.m.