reads_to_phyloseq: Converts read count data to a phyloseq object.

View source: R/convert.R

reads_to_phyloseqR Documentation

Converts read count data to a phyloseq object.

Description

Converts read count data to a phyloseq object.

Usage

reads_to_phyloseq(counts, feature_col, metadata = NULL, id_col = "sample_id")

Arguments

counts

A data.table containing at least columns "reads", "sample_id", and features.

feature_col

Column in the count table containing the features.

metadata

A metadata in data.table format to use.

id_col

Column in the metadata corresponding to the sample IDs in the read counts.

Value

A phyloseq object for the data.

Examples

NULL


Gibbons-Lab/mbtools documentation built on Jan. 28, 2024, 11:08 a.m.