Description Usage Arguments Value Examples
Filter differential rest results by removing taxa. For example, a genus level table obtained
using tax_glom()
function will put all unknown genera under a family as Genus = NA
under that family. But this is a Frankenstein genus that could potentially contain multiple
genera. Thus it would be a good idea to remove such genera from the results table, and only
report those with Genus != NA
.
1 | filter_results(results, rank)
|
results |
Results from |
rank |
Name of taxonomic rank to be tested for any |
Results object with same variables as in the input results
object, except that
the table
variable is now free of any entries that have NA
and the rank
level.
1 2 3 4 5 6 7 8 9 10 | ## Not run:
res <- test_differential_prevalence(physeq, group = "Diet")
# Remove Genus=NA because it is a chimeric genus.
res <- filter_results(res, "Genus")
# Now format them
hits <- format_hits(res)
## End(Not run)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.