A helper function to generate a character vector of SiMLR feature names based on a set of modality prefixes and numeric indices.

construct_sim_names(base_names, indices)

Arguments

base_names

A character vector of modality prefixes (e.g., c("t1", "dt", "rsf")).

indices

An integer vector of component indices (e.g., 1:10).

Value

A character vector of combined names (e.g., "t1PC1", "dtPC1", ... "rsfPC10").

Examples

modalities <- c("t1", "dt", "rsf")
components <- 1:3
construct_sim_names(modalities, components)
#> [1] "t1PC1"  "dtPC1"  "rsfPC1" "t1PC2"  "dtPC2"  "rsfPC2" "t1PC3"  "dtPC3" 
#> [9] "rsfPC3"