if (FALSE) {
# Initialize a python session if not already set up
ifcb_py_install()
# Create a MAT file with 100 ROIs, using a vector of class names, and save it to "output.mat"
ifcb_create_empty_manual_file(roi_length = 100,
class2use = c("unclassified", "Aphanizomenon_spp"),
output_file = "output.mat")
# Create a MAT file with 50 unclassified ROIs (1) and 50 Aphanizomenon_spp (2) ROIs
ifcb_create_empty_manual_file(roi_length = 100,
class2use = c("unclassified", "Aphanizomenon_spp"),
output_file = "output.mat",
classlist = c(rep(1, 50), rep(2, 50)))
}
Run the code above in your browser using DataLab