load_tsv_masks: Generate a data.frame with XY mask data from CellID's TSV...

View source: R/load_mask_data.R

load_tsv_masksR Documentation

Generate a data.frame with XY mask data from CellID's TSV files

Description

Generate a data.frame with XY mask data from CellID's TSV files

Usage

load_tsv_masks(
  dir_path,
  tsv_pattern = "^out_all_masks.tsv$",
  position_pattern = ".*Position(\\d+)$",
  ...
)

Arguments

dir_path

Path to the directory containing CellID's outputs (tipically the images' directory). CellID must have been run with TSV output enabled.

tsv_pattern

A regex pattern matching the names of the TSV files.

position_pattern

A regex pattern with one group for the integer position number, extracted from the directory name holding the TSV file.

...

Arguments passed on to read_coords_tsv

masks_tsv_path

A path to the TSV file holding XY coordinates, from CellID's output with "-t" option.

shape_pixtype

Default "b" for Hu moments based on boundary points. A character vector containing any of c("b", "i").

shape_flagtype

Default 0 for Hu moments based on flag value 0. Can be any of the integer flag values present in the out_bf_fl_mapping CellID files.

Details

Do not specify masks_tsv_path, it is generated by tsv_paths_from_dir automatically.

Value

A data.frame with XY


darksideoftheshmoo/rcell2 documentation built on Oct. 23, 2024, 12:59 p.m.