Since future_lapply is used in get_model_pars even when n_workers == 1, the user needs to adjust future.globals.maxSize depending on the dataset, which is tricky for incorporating sctransform into a pipeline. I would also worry that future_lapply is unnecessarily copying a lot of memory. Could the standard lapply be substituted instead when there is only 1 worker?
Since
future_lapply
is used inget_model_pars
even whenn_workers == 1
, the user needs to adjustfuture.globals.maxSize
depending on the dataset, which is tricky for incorporatingsctransform
into a pipeline. I would also worry thatfuture_lapply
is unnecessarily copying a lot of memory. Could the standardlapply
be substituted instead when there is only 1 worker?