Become an expert in R — Interactive courses, Cheat Sheets, certificates and more!
Get Started for Free

get_sample-methods

Returns all abundance values for species i.


Description

This is a simple accessor function for investigating a single species-of-interest.

Usage

get_sample(physeq, i)

## S4 method for signature 'otu_table'
get_sample(physeq, i)

## S4 method for signature 'phyloseq'
get_sample(physeq, i)

Arguments

physeq

(Required). otu_table-class, or phyloseq-class.

i

(Required). A single taxa/species/OTU ID for which you want to know the abundance in each sample.

Value

An integer vector of the abundance values for each sample in physeq for species i

See Also

Examples

data(esophagus)
taxa_names(esophagus)
get_sample(esophagus, "59_5_19")

phyloseq

Handling and analysis of high-throughput microbiome census data

v1.34.0
AGPL-3
Authors
Paul J. McMurdie <joey711@gmail.com>, Susan Holmes <susan@stat.stanford.edu>, with contributions from Gregory Jordan and Scott Chamberlain
Initial release
2019-04-23

We don't support your browser anymore

Please choose more modern alternatives, such as Google Chrome or Mozilla Firefox.