Skip to contents

The write_mothur function will write various file types for use with mothur.

Usage

write_mothur(data, dir_path = NULL, compress = TRUE, tags = NULL)

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.

tags

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.

Value

a vector of file names

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())