save_plate: Save a ddPCR plate

View source: R/save_load.R

save_plateR Documentation

Save a ddPCR plate

Description

Saves a plate to a file, including all its data, parameters, and current analysis state. The file can be read back later using load_plate. The file is not human-readable - if you want to save the droplets data or the metadata of a plate, then first retrieve the data using plate_data or plate_meta and save it with write.csv.

Usage

save_plate(plate, file)

Arguments

plate

Plate object to save.

file

Name of the file where the plate will be saved.

Value

The given plate, unchanged.

See Also

load_plate

Examples

plate <- new_plate(sample_data_dir())
save_plate(plate, "myplate")
unlink("myplate.rds")

ddpcr documentation built on Aug. 21, 2023, 1:07 a.m.