Skip to contents

This function renames motif models in a trajectory model based on a provided names_map. The names_map should be a named character vector where the names are the current names of the motif models and the values are the new names.

Usage

rename_motif_models(traj_model, names_map)

Arguments

traj_model

The trajectory model object to modify.

names_map

A named character vector specifying the mapping of current motif model names to new names. Can be generated using the match_traj_model_motif_names function.

Value

The modified trajectory model object with renamed motif models.