Format the phyloseq object to add the best taxonomy in phyloseq object (tax_table and otu_table).
format_to_besthit(x, prefix = NULL)
phyloseq-class
object
Prefered prefix e.g. OTU-d__denovo161:Roseburia or ASV-d__denovo161:Roseburia
phyloseq-class
object
Most commonly it is observed that the taxonomy file has classification until a given taxonomic level.
row.names for both tax_table and otu_table have best hit, until maximun genus level (species classification with short amplicons is a myth)is made available. This code is a
slight modification of the code from ampvis phyloseq-class
.
Here, we directly take the phyloseq object as input and make the necessary formatting.