Skip to contents

supporting function for runPreprocess, fastReseg_full_pipeline and fastReseg_flag_all_errors, to load a single field-of-view (FOV) transcript data file into a data frame from file path.

Usage

myFun_fov_load(path_to_fov)

Arguments

path_to_fov

file path to per fov transcript data.frame

Value

A data frame containing the transcript data.

Details

This function automatically detects the file format based on its extension and supports common tabular and binary formats, including

  • .csv, .txt, .tsv: tabular text files (comma- or tab-delimited)

  • .csv.gz, .txt.gz, .tsv.gz: gzip-compressed tabular files

  • .RData: R workspace files containing a single data frame object

  • .rds: serialized R object files

Examples

if (FALSE) { # \dontrun{
df <- myFun_fov_load("data/fov1.csv")
df <- myFun_fov_load("data/fov2.tsv.gz")
df <- myFun_fov_load("data/fov3.RData")
} # }