Dear Galaxy Support Team,
I am using the WGCNA Network Galaxy tool with the following Tool ID:
toolshed.g2.bx.psu.edu/repos/iuc/wgcna_network/wgcna_network/1.74+galaxy0
My job is failing with the following error:
Error in allowWGCNAThreads(nThreads = n_threads) :
nThreads must be numeric and at least 2.
Execution halted
The relevant job details are as follows:
- Job State: Error
- Job API ID: 4838ba20a6d86765a7a16459a345d7cf
- Created: Tuesday, July 21, 2026, 11:28:50 (GMT+5:30)
- Tool Exit Code: 1
- CPU Cores Allocated: 1
- Memory Allocated: 3891 MB
- Maximum Memory Usage: 434.7 MB
- Number of processes killed by OOM: 0
The tool successfully loads the required packages, including dynamicTreeCut, fastcluster, WGCNA, and igraph, but the job terminates when executing:
allowWGCNAThreads(nThreads = n_threads)
The complete error message is:
Loading required package: dynamicTreeCut
Loading required package: fastcluster
Attaching package: 'fastcluster'
The following object is masked from 'package:stats':
hclust
Attaching package: 'WGCNA'
The following object is masked from 'package:stats':
cor
Attaching package: 'igraph'
The following objects are masked from 'package:stats':
decompose, spectrum
The following object is masked from 'package:base':
union
Error in allowWGCNAThreads(nThreads = n_threads) :
nThreads must be numeric and at least 2.
Execution halted
I noticed that the Galaxy job was allocated only 1 CPU core, while the WGCNA tool appears to call allowWGCNAThreads() with a requirement of at least 2 threads. Therefore, I suspect there may be a mismatch between the tool’s threading configuration and the resources allocated to the job.
My WGCNA parameters were:
- Soft-thresholding power: 6
- Network type: Unsigned
- TOM type: Signed
- Correlation type: Pearson
- Minimum module size: 30
- Module merge cut height: 0.25
- Module eigengene network correlation threshold: 0.5
- Log2(count + 1) transformation: False
- Low-variance gene filtering: Enabled
- Variance filter quantile: 0.4
- WGCNA sample/gene QC filtering: False
- Metadata trait columns: 2
- Plot resolution: 300 DPI
Could you please check whether this is a problem with the current WGCNA Network 1.74+galaxy0 tool configuration or with the Galaxy resource allocation?
In particular, could you please advise whether:
- The tool requires at least 2 CPU cores to run successfully;
- The tool is incorrectly passing the allocated CPU count (
1) toallowWGCNAThreads(); - The Galaxy tool should automatically set
n_threadsto at least 2; or - There is a recommended workaround or configuration that I should use to run the analysis successfully.
I would appreciate your assistance in resolving this issue.
Thank you for your help.
Best regards,
Dr. Kranthi Kumar Konidala