Generate list of experiment names from user parameters
Source:R/generate_experiment_list.R
generate_experiment_list.Rd
generate_experiment_list
generates a list of provided experiment names extracted
from file names.
ask_experiment_list
works the same way as generate_experiment_list
, but retrieves the
experiment names based on a user prompt instead of user-set parameters.
Arguments
- experiment_names
A character vector containing names for each experiment.
- file_list
A character vector of file IDs. Used to extract experiment IDs from.
Value
generate_experiment_list
returns a list of experiment names where each level is assigned to a corresponding
row or column based on the selected direction parameter.
ask_experiment_list
returns a list containing experiment identifiers as keys and experiment names as values.
Details
generate_experiment_list
extracts unique identifiers from file names and matches them with the
provided experiment names. If the number of experiment names does not match the number
of unique identifiers extracted from the file names, it throws an error. If the lengths match,
it generates a list of experiment names where each name is associated with a unique
identifier extracted from the file names.