Compute trends and switchpoints for multiple modules along mPT
scMetaTraj_trend_multi(
score_mat,
mPT,
modules,
n_bins = 30,
smooth = TRUE,
span = 0.3
)A list with:
trend_long: long-format data.frame for plotting
switchpoints: data.frame of module-wise switchpoints
Matrix/data.frame (cells x modules). Row order must match mPT.
Numeric vector (length = n_cells).
Character vector of module names (columns of score_mat).
Integer. Number of mPT bins.
Logical. Whether to loess smooth.
Numeric. Loess span.