TiTvRatio: Transition / Transversion Ratio

Description Usage Arguments Value Author(s) Examples

View source: R/TiTvRatio.R

Description

Calculate transition/transversion ratio. Test substitution type of two bases.

Usage

1
2
3
4
5
6
7
TiTvRatio(x)

subType(b1, b2)

isTi(b1, b2)

isTv(b1, b2)

Arguments

x

a gtypes object with aligned sequences or a list of aligned DNA sequences.

b1, b2

two bases to be compared.

Value

TiTvRatio: a vector providing the number of transitions (Ti), transversions (Tv), and the transition/transversion ratio (Ti.Tv.ratio).
subType: either "ti" for transition, or "tv" for transversion.
isTi and isTv: a logical identifying whether the b1 to b2 is a transition or transversion.

Author(s)

Eric Archer eric.archer@noaa.gov

Examples

1
2
3
4
5
6
7
8
9
data(dolph.seqs)

TiTvRatio(dolph.seqs)

subType("a", "c")

isTi("a", "c")

isTv("a", "c")

strataG documentation built on Feb. 28, 2020, 9:07 a.m.