Skip to contents

Imports an RDS file produced by the segmantR segmentation package. Accepts either a segmantr_result list (where cells are in $cells) or a plain data frame.

Usage

cr_read_segmantr(path)

Arguments

path

Path to RDS file.

Value

A tibble of cells.

Examples

f <- tempfile(fileext = ".rds")
saveRDS(data.frame(cell_id = "c1", well = "A01", target_signal = 12), f)
cr_read_segmantr(f)
#> # A tibble: 1 × 3
#>   cell_id well  target_signal
#>   <chr>   <chr>         <dbl>
#> 1 c1      A01              12