Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

update collectrnaseqmetrics memory requirement #474

Merged
merged 6 commits into from
Apr 3, 2024
Merged
Show file tree
Hide file tree
Changes from 4 commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,7 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
### Changed

- Update to nf-tools 2.11.1 [#457] (https://github.com/nf-core/rnafusion/pull/457)
- Update picard collectrnaseqmetrics memory requirements to 0.8x what is provided [#474](https://github.com/nf-core/rnafusion/pull/474)

### Fixed

Expand Down
14 changes: 7 additions & 7 deletions modules/local/picard/collectrnaseqmetrics/main.nf
Original file line number Diff line number Diff line change
Expand Up @@ -2,10 +2,10 @@ process PICARD_COLLECTRNASEQMETRICS {
tag "$meta.id"
label 'process_medium'

conda "bioconda::picard=3.0.0 r::r-base"
conda "bioconda::picard=3.1.0"
container "${ workflow.containerEngine == 'singularity' && !task.ext.singularity_pull_docker_container ?
'https://depot.galaxyproject.org/singularity/picard:3.0.0--hdfd78af_1' :
'biocontainers/picard:3.0.0--hdfd78af_1' }"
'https://depot.galaxyproject.org/singularity/picard:3.1.0--hdfd78af_0' :
'biocontainers/picard:3.1.0--hdfd78af_0' }"

input:
tuple val(meta), path(bam), path(bai)
Expand Down Expand Up @@ -33,15 +33,15 @@ process PICARD_COLLECTRNASEQMETRICS {
def rrna = rrna_intervals == [] ? '' : "--RIBOSOMAL_INTERVALS ${rrna_intervals}"
def args = task.ext.args ?: ''
def prefix = task.ext.prefix ?: "${meta.id}"
def avail_mem = 3
def avail_mem = 3072
if (!task.memory) {
log.info '[Picard CollectRnaMetrics] Available memory not known - defaulting to 3GB. Specify process memory requirements to change this.'
} else {
avail_mem = task.memory.giga
}
avail_mem = (task.memory.mega*0.8).intValue()
}
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Small thing but could you align the final }

"""
picard \\
-Xmx${avail_mem}g \\
-Xmx${avail_mem}M \\
CollectRnaSeqMetrics \\
--TMP_DIR ./tmp \\
${strandedness} \\
Expand Down
Loading