ifcb_create_class2use {iRfcb} | R Documentation |
Create a class2use .mat
File
Description
This 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).
Usage
ifcb_create_class2use(classes, filename, do_compression = TRUE)
Arguments
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 |
Details
Python must be installed to use this function. The required python packages can be installed in a virtual environment using ifcb_py_install()
.
Value
No return value. This function is called for its side effect of creating a .mat
file.
References
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.
See Also
ifcb_py_install
ifcb_adjust_classes
https://github.com/hsosik/ifcb-analysis
Examples
## 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)