View source: R/prop_tax_down.R
prop_tax_row | R Documentation |
tax_table
object.prop_tax_row
Takes the taxon assignment from the lowest assigned level
in an OTU's assignment and fills it in to all the lower, unresolved fields.
prop_tax_row(taxrow, indic)
taxrow |
A single row in a taxon table |
indic |
a flag to indicate if the taxon names have level indicators. If FALSE, they are added. |
Often taxon cannot be assigned all the way down to genus from the limited information available from a given variable region of 16S (or other marker gene). If an OTU has been assigned to Order Enterobacteriales, but the Family and genus cannot be resolved, then the Family and Genus fields are left blank by QIIME. This function fills those fields with the string 'o_Enterobacteriales', so they are not parsed as NAs by ggplot and other functions.
A single row tax_table
object to with NAs replaced
with higher-level taxon assignments
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.