Biostar Beta. Not for public use.
Calculate distance matrix from nucleotide alignment with multiple IUPAC ambiguity characters
0
Entering edit mode
17 months ago
Denis • 70

I have a nucleotide multiple sequence alignment (MSA) with many IUPAC ambiguity characters like W,S,R, etc. I need to calculate distance matrix for making phylogenetic tree (as next step), but i'd like that all nucleotides (including ambiguity characters) would be taken into account during distances calculation. Is there any solution for my case. Thanks!

2
Entering edit mode
17 months ago
Klaus S • 100

The function dist.ml in the R package phangorn handles ambiguity characters like they are handled in ML optimisation.

library(phangorn)