Description Usage Arguments Value
View source: R/modify_phyloseq_functions.r
This function adapts the rows and the columns of the corresponding phyloseq object to improve the reading. It adds 0s based on the total amount of ASVs to enable correct sorting in R. If you imported your data from dada2 and your current taxa names are the sequences (ASVs), you can specify 'use_sequences = TRUE' to move the sequences to the phyloseq refseq() slot before renaming takes place. Existing sequences in the refseq() slot will then be overwritten!
1 | standardize_phyloseq_headers(phyloseq_object, taxa_prefix, use_sequences)
|
phyloseq_object |
The phyloseq object with the taxa_names() to be modified |
taxa_prefix |
The leading name of your taxa, e.g. 'ASV' or 'OTU', must not contain an underscore or white space |
use_sequences |
Logical indicating whether your current taxa_names() are sequences which you want to have moved to the refseq() slot of the returning phyloseq object |
The modified phyloseq object
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.