tax.fill(data, downstream = TRUE)
data
, but an updated taxonomy
column.
downstream == TRUE
, the function will start at the
kingdom level and work its way down. Whenever an invalid group
is
encountered (i.e. one of "unclassified", "unidentified",
"incertae_sedis", or simply missing, ignoring capitalization),
the last known 'good' group will be substituted in the form
"p__belongs_to_k_Fungi
." If downstream == FALSE
,
the function will begin at the species level and work up.
This example should help clarify: given the taxonomy "k__Fungi;
p__unidentified; c__Tremellomycetes", the new taxonomy is as
follows (recall that an OTU table is required as input, and
will be returned as output; this example simply shows the
effect on the taxonomy):
Usually, downstream = TRUE
will provide a more useful
output, however if the species is often known for your data,
but other ranks are unknown, downstream = FALSE
will
provide a more descriptive taxonomy.
RAM.rank.formatting
data(ITS1)
#\code{filter.OTU} returns a list
otu <- filter.OTU(data=list(ITS1=ITS1), percent=0.001)[[1]]
tax.fill(otu)
Run the code above in your browser using DataLab