View source: R/ifcb_create_class2use.R
ifcb_create_class2use | R Documentation |
.mat
FileThis function creates a .mat
file containing a character vector of class names.
A class2use file can be used for manual annotation using the code in the ifcb-analysis
repository (Sosik and Olson 2007).
ifcb_create_class2use(classes, filename, do_compression = TRUE)
classes |
A character vector of class names to be saved in the |
filename |
A string specifying the output file path (with |
do_compression |
A logical value indicating whether to compress the |
Python must be installed to use this function. The required python packages can be installed in a virtual environment using ifcb_py_install()
.
No return value. This function is called for its side effect of creating a .mat
file.
Sosik, H. M. and Olson, R. J. (2007), Automated taxonomic classification of phytoplankton sampled with imaging-in-flow cytometry. Limnol. Oceanogr: Methods 5, 204–216.
ifcb_py_install
ifcb_adjust_classes
https://github.com/hsosik/ifcb-analysis
## Not run:
# Initialize a python session if not already set up
ifcb_py_install()
# Example usage:
classes <- c("unclassified", "Dinobryon_spp", "Helicostomella_spp")
ifcb_create_class2use(classes, "class2use_output.mat", do_compression = TRUE)
## End(Not run)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.