Description Usage Arguments Value See Also Examples
View source: R/write_phyloseq.R
Writes the otu, taxonomy and metadata in csv files.
1 | write_phyloseq(x, type = "all", path = getwd())
|
x |
|
type |
'OTU' or 'TAXONOMY' or 'METADATA' |
path |
Path to the directory/folder where the data will be written. Uses the working directory by default. |
Output file path (a string)
read_phyloseq
1 2 3 4 5 6 7 | #data(dietswap)
#pseq <- dietswap
## By default writes all info at once (ie OTU/TAXONOMY/METADATA)
#write_phyloseq(pseq)
#write_phyloseq(pseq, 'OTU')
#write_phyloseq(pseq, 'TAXONOMY')
#write_phyloseq(pseq, 'METADATA')
|
Loading required package: phyloseq
Loading required package: ggplot2
microbiome R package (microbiome.github.com)
Copyright (C) 2011-2020 Leo Lahti,
Sudarshan Shetty et al. <microbiome.github.io>
Attaching package: ‘microbiome’
The following object is masked from ‘package:ggplot2’:
alpha
The following object is masked from ‘package:base’:
transform
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.