R/summarizeTaxonomicAssignments.R
summarizeTaxonomicAssignments.Rd
Summarize Taxonomic Assignments
summarizeTaxonomicAssignments(x)
A phyloseq object
tibble with overview of taxonomic assignments.
Percentage of taxa that have been assigned to the different taxonomic levels. Non assigned levels must be NA. Check biomeUtils::cleanTaxonomy.
library(biomeUtils)
data("SprockettTHData")
# run cleanTaxonomy if special characters are
# present in tax_table
summarizeTaxonomicAssignments(SprockettTHData)
#> In Species column- 156 are ambigous assignments
#> # A tibble: 7 × 4
#> Ranks TaxonomyAssigned Total PrecentAssigned
#> <chr> <int> <int> <dbl>
#> 1 Kingdom 2319 2319 100
#> 2 Phylum 2313 2319 99.7
#> 3 Class 2308 2319 99.5
#> 4 Order 2298 2319 99.1
#> 5 Family 2067 2319 89.1
#> 6 Genus 1734 2319 74.8
#> 7 Species 482 2319 20.8