hues_from_tsv2: Generate Hu moments from XY coordinates TSV file

View source: R/hu_moments_short.R

hues_from_tsv2R Documentation

Generate Hu moments from XY coordinates TSV file

Description

Cells in the dataframe are split by cellID, t.frame, flag, and pixtype by default.

Usage

hues_from_tsv2(
  masks_tsv_path,
  .parallel = F,
  shape_pixtype = "b",
  shape_flagtype = 0,
  cdata_subset = NULL,
  position = NULL
)

Arguments

masks_tsv_path

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

.parallel

Enable cell-wise parallelization using parallel::parLapply

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.

cdata_subset

Subset of cdata with unique rows, and only pos, t.frame and cellID columns.

position

Microscope position number (int) that corresponds to current TSV file, used for filtering if cdata_subset is not NULL.

Details

Optional filtering by shape type (boundary or interior) and CellID flag number.

Optional cell-wise parallelization.

To process many TSV files at once, use hues_from_tsv_files2.


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