Reads annotations for a single sample and returns a data frame in the same
format as load_from_mat.
Arguments
- db_path
Path to the SQLite database file
- sample_name
Sample name
- roi_dimensions
Data frame from
read_roi_dimensionswith columnsroi_number,width,height,area
Value
Data frame with columns: file_name, class_name, score, width, height, roi_area. Returns NULL if the sample has no annotations.
Examples
if (FALSE) { # \dontrun{
dims <- read_roi_dimensions("/data/raw/2023/D20230101/D20230101T120000_IFCB134.adc")
db_path <- get_db_path("/data/manual")
classifications <- load_annotations_db(db_path, "D20230101T120000_IFCB134", dims)
} # }