Entering edit mode
2.6 years ago
annamariabugaj
•
0
I am not sure what this error mean and what can I do about it? I am using this code from https://rdrr.io/cran/WGCNA/man/moduleEigengenes.html
eigengenes <- moduleEigengenes(datExpr,
moduleColors,
impute = TRUE,
nPC = 1,
align = "along average",
excludeGrey = FALSE,
grey = if (is.numeric(colors)) 0 else "grey",
subHubs = TRUE,
trapErrors = FALSE,
returnValidOnly = trapErrors,
softPower = 7,
scale = TRUE,
verbose = 0, indent = 0)
Error in moduleEigengenes(datExpr, moduleColors, impute = TRUE, nPC = 1, : object 'trapErrors' not found
As trapErrors should be FALSE, you can replace
returnValidOnly = trapErrors
withreturnValidOnly = FALSE
to deal with the error