tsv_paths_from_dir: Generate data.frame with paths to coordinate TSV files

View source: R/load_mask_data.R

tsv_paths_from_dirR Documentation

Generate data.frame with paths to coordinate TSV files

Description

Convenience function to generate paths for read_coords_tsv and input for hues_from_tsv_files2.

Usage

tsv_paths_from_dir(
  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.


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