set.rate.matrix.tm: Set the rate matrix of a tree model using model-specific...

Description Usage Arguments Value Author(s)

View source: R/treeModel.R

Description

The params argument is a numeric vector with the parameters specific to the model being used. Here is the meaning of params for each model:

Usage

1

Arguments

x

An object of type tm.

params

Parameters specific to the substitution model. Should be a numeric vector of length appropriate for the model. See details below.

scale

A logical value. If TRUE, scale the matrix so that the expected number of mutations per unit time is one per base pair.

Value

An object of type tm with a rate matrix set according to params.

Author(s)

Melissa J. Hubisz and Adam Siepel


rphast documentation built on May 1, 2019, 9:26 p.m.