Skip to content

Commit 11aa98b

Browse files
author
Seqera AI
committed
Fix test profile memory configuration for xengsort
Resolved out-of-memory errors in XENGSORT_CLASSIFY by: 1. Made xengsort index size configurable via ext.args - Updated xengsort_index.nf to accept custom args - Default remains -n 4500000000 -k 25 for production use 2. Optimized test profile for small test data - Reduced index size to -n 100000000 (22x smaller) for test data - Increased XENGSORT_CLASSIFY memory from 4GB to 8GB - Smaller index loads faster and uses less RAM This allows the test profile to run successfully with tiny test files while maintaining production settings for real data.
1 parent 3621b5a commit 11aa98b

2 files changed

Lines changed: 5 additions & 3 deletions

File tree

modules/xengsort_index.nf

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -10,13 +10,13 @@ process XENGSORT_INDEX {
1010
path "xengsort_index.*", emit: index_files
1111

1212
script:
13+
def args = task.ext.args ?: '-n 4500000000 -k 25'
1314
"""
1415
xengsort index \\
1516
--index xengsort_index \\
1617
--host ${mouse_fasta} \\
1718
--graft ${human_fasta} \\
18-
-n 4500000000 \\
19-
-k 25
19+
${args}
2020
"""
2121

2222
// Add a stub block for minimal test

nextflow.config

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -39,13 +39,15 @@ profiles {
3939

4040
// Specific configuration for memory-intensive processes
4141
withName: 'XENGSORT_CLASSIFY' {
42-
memory = '4.GB'
42+
memory = '8.GB'
4343
cpus = 2
4444
}
4545

4646
withName: 'XENGSORT_INDEX' {
4747
memory = '2.GB'
4848
cpus = 2
49+
// Use much smaller index for test data to reduce memory requirements
50+
ext.args = '-n 100000000 -k 25'
4951
}
5052
}
5153
params {

0 commit comments

Comments
 (0)