The goal of scregclust is to cluster genes by regulatory programs. To do so, genes are clustered into modules which in turn are associated with regulators. The algorithm alternates between associating regulators to modules and reallocating target genes into modules.
You can install the development version of scregclust from GitHub with:
# install.packages("devtools")
::install_github("scmethods/scregclust") devtools