Regular expression to check generate_protocol_id() protocol IDs for Methods table
Source: R/fct_generate_IDs.R
protocol_id_regex.RdReturns the regex pattern that matches protocol IDs generated by
generate_protocol_id().
Details
The pattern matches the format TypeCodeSequenceNumber_AbbreviatedName_CampaignAbbrev
as produced by generate_protocol_id(), where:
TypeCode: one ofS,F,E,A, orXSequenceNumber: exactly two digits (zero-padded)_AbbreviatedName: optional underscore + up to 15 alphanumeric characters_CampaignAbbrev: optional underscore + up to 10 alphanumeric characters
Examples of valid IDs: S01_WaterSample_MyStudy, A02_LCMS_Study2024
See also
Other generate_id:
abbreviate_string(),
generate_protocol_id(),
generate_reference_id(),
generate_sample_id_with_components(),
sample_id_regex()
Other method:
analytical_protocols_vocabulary(),
example_methods_tibble(),
extraction_protocols_vocabulary(),
fractionation_protocols_vocabulary(),
generate_protocol_id(),
initialise_methods_tibble(),
protocol_categories_vocabulary(),
protocol_options_vocabulary(),
sampling_protocols_vocabulary()