Resolve legacy-import paths and perform fast-fail argument checks
Source:R/utils.R
dot-ph_resolve_paths.RdCombines explicit arguments with a YAML config (if given),
expands every relative path to an absolute path (relative paths are
evaluated against dirname(config_yaml) (!!!) when YAML is used, otherwise
against the directory that contains the first supplied data matrix (!!!)),
and returns a fully populated list of file locations and options ready for
downstream conversion. Only cheap, load-blocking checks are done here:
input_fileandhit_filemust be supplied together or both omitted.At least one matrix source (
exist_file,fold_change_file, or theinput_file+hit_filepair) must be present.Deprecated
output_dirtriggers a soft warning.
All deeper table-content validation is deferred to phip_data class
validation.
Usage
.ph_resolve_paths(
exist_file = NULL,
fold_change_file = NULL,
samples_file = NULL,
input_file = NULL,
hit_file = NULL,
timepoints_file = NULL,
extra_cols = NULL,
output_dir = NULL,
data_long_path = NULL,
peptide_library = TRUE,
n_cores = NULL,
materialise_table = NULL,
auto_expand = NULL,
sample_id_from_filenames = NULL,
config_yaml = NULL
)Arguments
- exist_file, fold_change_file, input_file, hit_file, samples_file, timepoints_file
Character paths (relative or absolute) to the respective CSV/Parquet inputs.
NULLmeans "not supplied".- extra_cols
Character vector of extra metadata columns to keep; may be
NULL.- output_dir
Ignored (soft-deprecated).
- config_yaml
Optional path to a YAML file whose keys mirror the function arguments; relative paths inside the YAML are resolved against the YAML’s own directory.