indelcoder-methods: Codes gaps

Description Usage Arguments Value Methods Author(s) References See Also Examples

Description

Function for coding gaps separately. Only simple indel coding method is available in the current version.

Usage

1
2
## S4 method for signature 'Dna'
indelcoder(x)

Arguments

x

an object of class Dna.

Value

a list with two components:

indels:

a matrix giving the indel positions (beginnings and ends) and lengths.

codematrix:

a binary matrix giving the indel codings. Missing values are denoted by -1.

Methods

signature(x = "Dna")

Function for coding gaps separately.

Author(s)

Caner Aktas, caktas.aca@gmail.com

References

Simmons, M., Ochoterena, H. (2000) Gaps as characters in sequence-based phylogenetic analyses. Systematic Biology 49, 369-381.

See Also

distance

Examples

1
2
3
4
5
data("dna.obj")
x<-dna.obj

## Simple indel coding.
indelcoder(x)

haplotypes documentation built on Feb. 28, 2020, 5:08 p.m.