Skip to content

Commit

Permalink
Merge pull request #234 from uclahs-cds/sfitz-generic-resources
Browse files Browse the repository at this point in the history
Sfitz generic resources
  • Loading branch information
sorelfitzgibbon authored Sep 27, 2023
2 parents a860454 + 16346a3 commit 3771180
Show file tree
Hide file tree
Showing 4 changed files with 17 additions and 2 deletions.
4 changes: 4 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,11 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0

## [Unreleased]

### Added
- Add check for MuSE or Mutect2 on F2 node

### Changed
- Fix blarchive compression log output directory
- Delay readcount compression until original file is no longer needed

## [7.0.0-rc.1] - 2023-08-28
Expand Down
2 changes: 1 addition & 1 deletion external/pipeline-Nextflow-config
11 changes: 11 additions & 0 deletions main.nf
Original file line number Diff line number Diff line change
Expand Up @@ -47,6 +47,17 @@ log.info """\
tumor_only_mode: ${params.tumor_only_mode}
"""

if (params.max_cpus < 16 || params.max_memory < 30) {
if (params.algorithm.contains('muse') || params.algorithm.contains('mutect2')) {
error """\
------------------------------------
ERROR: Insufficient resources: ${params.max_cpus} CPUs and ${params.max_memory} of memory.
------------------------------------
To run Mutect2 or MuSE. this pipeline requires at least 16 CPUs and 32 GB of memory.
"""
}
}

include {
run_GetSampleName_Mutect2 as run_GetSampleName_Mutect2_normal
run_GetSampleName_Mutect2 as run_GetSampleName_Mutect2_tumor
Expand Down
2 changes: 1 addition & 1 deletion module/common.nf
Original file line number Diff line number Diff line change
Expand Up @@ -88,7 +88,7 @@ process compress_file_blarchive {
set -euo pipefail
dereferenced_file=\$(readlink -f ${file_to_compress})
blarchive compress_files --input \$dereferenced_file \
--log ${params.work_dir}
--log ./
ln -s \${dereferenced_file}.bz2 ${file_to_compress}.bz2
"""
}

0 comments on commit 3771180

Please sign in to comment.