Determines optimal diffusion steps using Procrustes analysis.
Usage
magic_optimal_t(
data,
diff_op,
t_max = 20,
threshold = 0.001,
subsample_genes = 500,
plot = FALSE,
verbose = FALSE
)Arguments
- data
Matrix (cells x genes).
- diff_op
Diffusion operator.
- t_max
Integer. Maximum t to test. Default is 20.
- threshold
Numeric. Convergence threshold. Default is 0.001.
- subsample_genes
Integer or NULL. Genes to subsample. Default is 500.
- plot
Logical. Create diagnostic plot. Default is FALSE.
- verbose
Logical or integer. Verbosity level.