read.paml_rst: read.paml_rst

Description Usage Arguments Value Author(s) Examples

View source: R/paml_rst.R

Description

read rst file from paml (both baseml and codeml) output

Usage

1
read.paml_rst(rstfile, type = "Joint")

Arguments

rstfile

rst file

type

one of 'Marginal' or 'Joint'

Value

A treedata object

Author(s)

Guangchuang Yu https://guangchuangyu.github.io

Examples

1
2
rstfile <- system.file("extdata/PAML_Baseml", "rst", package="treeio")
read.paml_rst(rstfile)

Example output

Loading required package: Biostrings
Loading required package: BiocGenerics
Loading required package: parallel

Attaching package: 'BiocGenerics'

The following objects are masked from 'package:parallel':

    clusterApply, clusterApplyLB, clusterCall, clusterEvalQ,
    clusterExport, clusterMap, parApply, parCapply, parLapply,
    parLapplyLB, parRapply, parSapply, parSapplyLB

The following objects are masked from 'package:stats':

    IQR, mad, sd, var, xtabs

The following objects are masked from 'package:base':

    Filter, Find, Map, Position, Reduce, anyDuplicated, append,
    as.data.frame, cbind, colMeans, colSums, colnames, do.call,
    duplicated, eval, evalq, get, grep, grepl, intersect, is.unsorted,
    lapply, lengths, mapply, match, mget, order, paste, pmax, pmax.int,
    pmin, pmin.int, rank, rbind, rowMeans, rowSums, rownames, sapply,
    setdiff, sort, table, tapply, union, unique, unsplit, which,
    which.max, which.min

Loading required package: S4Vectors
Loading required package: stats4

Attaching package: 'S4Vectors'

The following object is masked from 'package:base':

    expand.grid

Loading required package: IRanges
Loading required package: XVector

Attaching package: 'Biostrings'

The following object is masked from 'package:treeio':

    mask

The following object is masked from 'package:base':

    strsplit

'paml_rst' S4 object that stored information of
	 '/usr/local/lib/R/site-library/treeio/extdata/PAML_Baseml/rst'.

...@ tree:
Phylogenetic tree with 15 tips and 13 internal nodes.

Tip labels:
	A, B, C, D, E, F, ...
Node labels:
	16, 17, 18, 19, 20, 21, ...

Unrooted; includes branch lengths.

with the following features available:
	'marginal_subs',	'joint_subs',	'marginal_AA_subs',	'joint_AA_subs'.

treeio documentation built on Nov. 21, 2020, 2:01 a.m.