Cleans up an antigenic_map data frame based on provided inputs. Two checks are carried out. First, it will check if an antigenic map is provided, and if so, it will align its entries with possible_exposure_times. If no antigenic map is provided, it will create a dummy map where all pathogens have the same position on the map. Second, it will enumerate the antigenic map for each unique biomarker group, unless the antigenic map has already been enumerated.
setup_antigenic_map(
antigenic_map = NULL,
possible_exposure_times = NULL,
n_biomarker_groups = 1,
unique_biomarker_groups = c(1),
verbose = TRUE
)the antigenic map data frame
a vector of possible exposure times, which will be used to align the antigenic map
the number of biomarker groups in the antigenic map when the map is expanded for multiple groups
a vector of labels for the biomarker groups in the antigenic map
if TRUE, prints messages about the process
list with three entries: 1) the updated antigenic map, 2) the updated possible_exposure_times vector, 3) a set of zero-based indices matching possible_exposure_times to entries in the antigenic map for use by the model
Other antigenic_maps:
euc_distance(),
generate_antigenic_map_flexible(),
melt_antigenic_coords()