Reads per-cell measurements from CSV, TSV, Excel, RDS or FCS formats.
The format is auto-detected from the file extension unless
format is given explicitly.
See also
cr_read_export() and cr_read_exports() for exports that
carry design information in their path and file name.
Other import:
cr_assign_units(),
cr_centroid_overlap(),
cr_column_map(),
cr_extract_markers(),
cr_filename_grammar(),
cr_marker_rules(),
cr_merge_rules(),
cr_parse_paths(),
cr_path_spec(),
cr_read_cellprofiler(),
cr_read_design(),
cr_read_export(),
cr_read_exports(),
cr_read_qupath(),
cr_read_segmantr(),
cr_unit_map()
Examples
f <- tempfile(fileext = ".csv")
utils::write.csv(
data.frame(cell_id = "c1", well = "A01", target_signal = 12),
f, row.names = FALSE
)
cr_read_cells(f)
#> # A tibble: 1 × 3
#> cell_id well target_signal
#> <chr> <chr> <dbl>
#> 1 c1 A01 12