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

View source: R/load_mask_data.R

tsv_paths_from_argsR Documentation

Generate data.frame with paths to coordinate TSV files

Description

Convenience function to generate input for hues_from_tsv_files2.

Usage

tsv_paths_from_args(
  arguments,
  position_pattern = ".*Position(\\d+)$",
  tsv_pattern = "^out_all_masks.tsv(?:\\.gz)?$"
)

Arguments

arguments

An "arguments" dataframe, as produced by rcell2.cellid::arguments.

position_pattern

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

tsv_pattern

A regex pattern matching the name of the TSV file (readr::read_tsv supports reading "gz" compressed files direclty).


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