Saves SiMLR outputs to a structured directory with relative paths for portability. Matrices and data frames are written as CSV files with row names included and stored in the manifest. Other R objects are saved as `.rds`. NULL components are recorded without files.

write_simlr(simlr_object, file_prefix, clear_dir = FALSE)

Arguments

simlr_object

A named list containing SiMLR outputs (e.g., `mysim$simlrX`).

file_prefix

A character string used as the prefix for the output directory.

clear_dir

Logical: if TRUE, clear the output directory before writing (default: FALSE).

Value

No return value, called for side effects.