Calculate distance matrix from nucleotide alignment with multiple IUPAC ambiguity characters
1
1
Entering edit mode
5.5 years ago
Denis ▴ 310

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!

alignment sequence phylogenetics • 3.8k views
ADD COMMENT
6
Entering edit mode
5.5 years ago
Klaus S ▴ 160

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

library(phangorn)
dat <- read.phyDat("msa.fas", format="fasta)
dist.ml(dat, model = "F81", exclude = "none")
ADD COMMENT
0
Entering edit mode

Thanks! As i understand F81 model is four parametric in typical case. I'm wondering if it would have much more parameters in case of IUPAC ambiguity characters? It will extract the base frequences from the nucleotide alignment, which i'm using as input. Am i right?

ADD REPLY
0
Entering edit mode

Hi Denis, I look for solution of similar problem my_question. Can you give me an advice, do you have solution? Best regards, Marcin

ADD REPLY

Login before adding your answer.

Traffic: 2234 users visited in the last hour
Help About
FAQ
Access RSS
API
Stats

Use of this site constitutes acceptance of our User Agreement and Privacy Policy.

Powered by the version 2.3.6