Skip to contents

`from_taxonomy_annotate_to_phyloseq()` transforms a data frame that contains sourmash taxonomy annotate results into a phyloseq object. Counts are derived from the `n_unique_kmers` column, the abundance-weighted number of unique k-mers overlapping between a query and its match in the database.

Usage

from_taxonomy_annotate_to_phyloseq(taxonomy_annotate_df, metadata_df = NULL)

Arguments

taxonomy_annotate_df

Data frame containing outputs from sourmash taxonomy annotate.

metadata_df

Optional. A data frame of metadata. The row names must match the values of `query_names` in the `taxonomy_annotate_df`. Any additional columns may be added.

Value

A phyloseq object.

Examples

if (FALSE) {
from_taxonomy_annotate_to_phyloseq(taxonomy_annotate_df)
}