joey711/phyloseq — Issue #41: Add check in (w)UniFrac that species match
Author: joey711
Created: 2011-10-21 17:35:07+00:00
State: open
Labels: Documentation, Feature

This is a minor input check that will help clue a user that they haven't properly pruned their data prior to (w)UniFrac.

The user should be dealing with this by creating the complex combined object, since that really is a core aspect of this package. Simply creating the object will fix the problem, so it should suffice to add a test followed by a warning (or error?) message stating that the species components of the tree/table don't agree, and merging them with

> phyloseq(...)

will fix the problem.

e.g.

> wUniFrac(phyloseq(OTU, tree))

Also state this boldly in the (w)UniFrac documentation. Make it obvious.