metacoder (version 0.2.0)

parse_phyloseq: Convert a phyloseq to taxmap

Description

Converts a phyloseq object to a taxmap object.

Usage

parse_phyloseq(obj)

Arguments

obj

A phyloseq object

Value

A taxmap object

See Also

Other parsers: parse_greengenes, parse_mothur_tax_summary, parse_mothur_taxonomy, parse_newick, parse_phylo, parse_qiime_biom, parse_rdp, parse_silva_fasta, parse_unite_general

Examples

Run this code
# NOT RUN {
# Install phyloseq to get example data
# source('http://bioconductor.org/biocLite.R')
# biocLite('phyloseq')

# Parse example dataset
library(phyloseq)
data(GlobalPatterns)
x <- parse_phyloseq(GlobalPatterns)

# Plot data
heat_tree(x,
          node_size = n_obs,
          node_color = n_obs,
          node_label = taxon_names,
          tree_label = taxon_names)

# }
# NOT RUN {
# }

Run the code above in your browser using DataLab