Skip to contents

This function adds specified motif models to a given trajectory model. It updates the model, motif models, predicted difference score, model features, coefficients, normalized energies, and features R^2 of the trajectory model.

Usage

add_motif_models_to_traj(traj_model, new_motif_models, verbose = TRUE)

Arguments

traj_model

The trajectory model object to add motif models to.

new_motif_models

A named list of motif models to add. Each element should contain a 'pssm' component and optionally a 'spat' component.

verbose

A logical value indicating whether to display information about the R^2 after adding the motif models. Default is TRUE.

Value

The updated trajectory model object after adding the motif models.