Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

How are missing/ambiguous data handled? #180

Open
wzbillings opened this issue Dec 9, 2024 · 0 comments
Open

How are missing/ambiguous data handled? #180

wzbillings opened this issue Dec 9, 2024 · 0 comments

Comments

@wzbillings
Copy link

wzbillings commented Dec 9, 2024

In the documentation for dist.hamming(), it says "The default is handle missing data as in pml". However, the pml function documentation doesn't appear to explain the default way that missing data are handled. I took a look at the code in phylo.R but don't understand it enough to answer my own question.

I see that the default argument is exclude = "none", and when I use phangorn::dist.hamming(), and I get different answers than I do from a naive hamming distance method (e.g. stringdist::stringdist(..., method = "hamming"), which implies that the default is to handle ambiguous states and gaps in some way.

If you have time, I would appreciate a brief explanation of the default way that missing data are handled. In particular, is there a difference in the way ambiguous residues and gaps are handled?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant