The write_mothur function will write various file types for use with mothur.
Arguments
- data
A `strollur` object
- dir_path
a string containing the name of directory where the files should be written. Default = current working directory.
- compress
boolean, Default = TRUE.
a vector of strings containing the items you wish to write Options are 'sequence_data', 'bin_data', 'metadata', 'references', 'sequence_tree', 'sample_tree' and 'reports'. By default, everything is written to files.
Examples
miseq <- miseq_sop_example()
#> Added 2425 sequences.
#> Assigned 2425 sequence abundances.
#> Assigned 2425 sequence taxonomies.
#> Assigned 531 otu bins.
#> Assigned 2425 asv bins.
#> Assigned 63 phylotype bins.
#> Assigned 19 samples to treatments.
#> Assigned 531 otu bin taxonomies.
#> Assigned 531 otu bin representative sequences.
#> Added metadata.
#> Added 2 resource references.
#> Added a contigs_report.
files <- write_mothur(miseq, tempfile())
