subs-methods {haplotypes} | R Documentation |
Displays base substitutions
Description
This function displays all base substitutions. If fifth=="TRUE"
, each gap is treated as a fifth state character.
Usage
## S4 method for signature 'Dna'
subs(x,fifth=FALSE)
Arguments
x |
an object of class |
fifth |
boolean; should gaps be treated as a fifth state character? |
Value
a list with three components:
subsmat
:a sequence matrix showing substitutions.
subs
:a list of matrices of the substitutions.
subsmnum
:total number of substitutions.
Methods
signature(x = "Dna")
Author(s)
Caner Aktas, caktas.aca@gmail.com.
Examples
data("dna.obj")
x<-dna.obj
## Base substitutions.
subs(x)
## Gaps are treated as a fifth state character.
subs(x,fifth=TRUE)
[Package haplotypes version 1.1.3.1 Index]