dist.alignment {seqinr} | R Documentation |
These functions compute a matrix of pairwise distances from aligned sequences using similarity (Fitch matrix) or identity matrix.
dist.alignment(x, matrix = "similarity")
x |
object of class alignment |
matrix |
the matrix distance to be used: "similarity" or "identity" |
The distance matrix, object of class dist
, computed by using the specified distance measure.
D. Charif
The reference for the similarity matrix is :
Fitch, W.M. (1966) Mutation values for the interconversion of amino acid pair.
J. Mol. Biol., 16:9-16.
citation("seqinr")
s = read.alignment(File=system.file("sequences/test.mase", package = "seqinr"), format="mase") dist.alignment( s, matrix = "identity" )