Get similarity between aligned sequences with gap ignored.

similarityMatrix(tree)

Arguments

tree

The return from addMSA function.

Value

A diagonal matrix of similarity between sequences.

Examples

data(zikv_tree)
data(zikv_align)
tree <- addMSA(zikv_tree, alignment = zikv_align)
simMatrix <- similarityMatrix(tree)