getDNAMatrix returns a Hamming distance matrix for IUPAC ambiguous
DNA characters with modifications for gap, c("-", "."), and missing,
c("?"), character values.
Usage
getDNAMatrix(gap = -1)
Value
A matrix of DNA character distances with row and column names
indicating the character pair. By default, distances will be either 0
(equivalent), 1 (non-equivalent or missing), or -1 (gap).
Arguments
gap
value to assign to characters in the set c("-", ".").
See Also
Creates DNA distance matrix for seqDist.
See getAAMatrix for amino acid distances.
# Set gap characters to Inf distance# Distinguishes gaps from NsgetDNAMatrix()
# Set gap characters to 0 distance# Makes gap characters equivalent to NsgetDNAMatrix(gap=0)