getDNAMatrix | R Documentation |
getDNAMatrix
returns a Hamming distance matrix for IUPAC ambiguous
DNA characters with modifications for gap, c("-", ".")
, and missing,
c("?")
, character values.
getDNAMatrix(gap = -1)
gap |
value to assign to characters in the set |
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).
Creates DNA distance matrix for seqDist. See getAAMatrix for amino acid distances.
# Set gap characters to Inf distance
# Distinguishes gaps from Ns
getDNAMatrix()
# Set gap characters to 0 distance
# Makes gap characters equivalent to Ns
getDNAMatrix(gap=0)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.