Better error message for UniFrac distances? - issue #53
Opened this issue · 2 comments
Hi David,
Thanks for developing and maintaining MicroViz, what a wonderful tool.
I would like to suggest changing the error message for this issue: @david-barnett in #53 (comment). I wanted to calculate UiFrac distances and got this same error. I spent so much time trying different things to fix it and did not expected that the error was simply for a parameter (that with other distances worked fine). Also, as this issue is closed it took me longer to get to the solution.
Thanks!
Hi Alejandro,
Glad you're finding microViz useful 🙂
Currently the error message (when you aggregate taxa before trying to use a unifrac distance) includes the line:
unifrac distances require un-aggregated taxa and a phylogenetic tree
Do you have a suggestion for making this clearer? e.g. what helped you to understand the problem eventually?
cheers
David
Hi David,
The error message is fine. It was more my bias than anything. When I got the error I instantly assumed that the phylogenetic tree was the problem, when actually the taxa aggregation was the issue.
Although, when searching how to fix this issue almost all blogs and prompts (from AI tools) suggested that the phylogenetic tree was the problem, which might have contributed with my confusion. But to be fair that has nothing to do with the code or the documentation. It really is a very nice tool.
Thank you very much.