Skip to contents

Filter multi-trajectory model

Usage

filter_multi_traj_model(
  multi_traj,
  r2_threshold = 0.0005,
  bits_threshold = 1.75,
  sample_frac = 0.1,
  filter_full = TRUE
)

Arguments

multi_traj

A TrajectoryModelMulti model object.

r2_threshold

minimal R^2 for a feature to be included in the model.

bits_threshold

minimal sum of bits for a feature to be included in the model.

sample_frac

The fraction of samples to use for computing the r2 without each model. When NULL, all samples are used.

filter_full

A logical value indicating whether to filter the full models (@models_full) or the reduced models (@models). Default is TRUE.

Value

The filtered TrajectoryModelMulti object