hues_from_tsv_files2: Generate Hu moments data frame from one or more TSV files

hues_from_tsv_files2R Documentation

Generate Hu moments data frame from one or more TSV files

Description

The required TSV are generated by the mask_mod branch of the CellID program found at: https://github.com/darksideoftheshmoo/cellID-linux/tree/mask_mod

Usage

hues_from_tsv_files2(
  tsv_files_df,
  return_points = F,
  parralellize = T,
  shape_pixtype = "b",
  shape_flagtype = 0,
  cdata_subset = NULL
)

Arguments

tsv_files_df

A data.frame with paths to the TSV files with the cells' XY coordinates, generated by CellID mask_mod's "-t" option. Use tsv_paths_from_args() for convenience.

return_points

if TRUE it will add a "masks" dataframe to the cell_data object, containing the mask coordinates.

parralellize

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.

Details

To play with the XY coordinates of the TIFF masks you may want to set return_points = T.


gerbeldo/tidycell documentation built on Aug. 15, 2022, 2:35 p.m.