fix(qualimap) Fix for errors in qualimap when memory is set to null - #12441
fix(qualimap) Fix for errors in qualimap when memory is set to null#12441bigbigdumdum wants to merge 2 commits into
Conversation
… set, to if else block used in other other parts of nextflow.
erikrikarddaniel
left a comment
There was a problem hiding this comment.
Difficult to make a test for, I suppose? Otherwise, LGTM, even if I have no idea whether the 3 GiB default is reasonable.
|
Please join the github org via the slack channel so the CI runs for you. |
I assumed 3GB is standard. The modification is based on the comment from @pinin4fjords on the issue I posted in nf-core/rnaseq nf-core/rnaseq#1887. But I think a memory value parameter which can be set in config should be a better way to do this than hard coding the value in each process. But this would need changes uniform changes to all the modules where this block of code is used (which I gather is ~126). |
|
Hello! i have run the tests. And many seem to have failed. The linting fails are from preexisting code in the files. I do not know what the rest of the test are checking. Can you please take a look at it. |
Changed task.memory.mega, which breaks if memory is set to null (as required in some HPCs), to if else block used in other other parts of nextflow.
The line
def memory = (task.memory.mega*0.8).intValue() + 'M'Got changed to
and corresponding calls to memory variables ($memory) got changed to $avail_mem
This was done for the following files
lint identified issues with other lines irrelevant to these changes. I didn't look more into this.
qualimap/rnaseq │ modules/nf-core/qualimap/rnaseq/main.nf │ main_nf_meta_key: Invalid 'meta' keys detected: meta.strandedness, meta.strandedness
│ qualimap/bamqc │ modules/nf-core/qualimap/bamqc/main.nf │ main_nf_ext_key: Invalid 'ext' keys detected: ext.suffix, ext.suffix │
│ qualimap/bamqc │ modules/nf-core/qualimap/bamqc/main.nf │ main_nf_meta_key: Invalid 'meta' keys detected: meta.strandedness, meta.strandedness
│ qualimap/bamqccram │ modules/nf-core/qualimap/bamqccram/main.nf │ main_nf_meta_key: Invalid 'meta' keys detected: meta.strandedness, meta.strandedness │
│ qualimap/bamqccram │ modules/nf-core/qualimap/bamqccram/main.nf │ main_nf_version_topic: Module does not emit software versions as topic
nf-test could not be installed along with nf-core in my system (Ubuntu 24.04.3 LTS) within the same conda environment. So testing was not done.
check boxes that I was not sure about were left unchecked
PR checklist
Closes #XXX
topic: versions- See version_topicslabelnf-core modules test <MODULE> --profile dockernf-core modules test <MODULE> --profile singularitynf-core modules test <MODULE> --profile condanf-core subworkflows test <SUBWORKFLOW> --profile dockernf-core subworkflows test <SUBWORKFLOW> --profile singularitynf-core subworkflows test <SUBWORKFLOW> --profile conda