standardize_phyloseq_headers: Change naming style of the taxa in the phyloseq object.

Description Usage Arguments Value

View source: R/modify_phyloseq_functions.r

Description

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!

Usage

1
standardize_phyloseq_headers(phyloseq_object, taxa_prefix, use_sequences)

Arguments

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

Value

The modified phyloseq object


RJ333/phyloseq2ML documentation built on June 2, 2020, 9:25 p.m.