File tree Expand file tree Collapse file tree 1 file changed +6
-2
lines changed
Expand file tree Collapse file tree 1 file changed +6
-2
lines changed Original file line number Diff line number Diff line change @@ -30,12 +30,16 @@ process COGAPS {
3030 Rscript -e 'library("CoGAPS");
3131 sparse <- readRDS("$dgCMatrix ");
3232 data <- as.matrix(sparse);
33+ #avoid errors with distributed params
34+ dist_param <- NULL;
35+ if(!("$params . distributed "=="null")){
36+ dist_param <- "$params . distributed "};
3337 params <- CogapsParams(seed=42,
3438 nIterations = $params . niterations ,
3539 nPatterns = $params . npatterns ,
3640 sparseOptimization = as.logical($params . sparse ),
37- distributed=" $p arams . distributed " );
38- if (!(" $p arams . distributed "==" null" )){
41+ distributed=dist_param );
42+ if (!(is. null(dist_param) )){
3943 params <- setDistributedParams(params, nSets = $params . nsets );
4044 };
4145 cogapsResult <- CoGAPS(data = data, params = params, nThreads = $params . nthreads );
You can’t perform that action at this time.
0 commit comments