Skip to content

Commit

Permalink
Merge branch 'main' of github.com:uclahs-cds/pipeline-call-sSNV into …
Browse files Browse the repository at this point in the history
…sfitz-nftest-assertions
  • Loading branch information
sorelfitzgibbon committed Sep 27, 2023
2 parents 09e78b5 + 3771180 commit 58eabd5
Show file tree
Hide file tree
Showing 3 changed files with 16 additions and 1 deletion.
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
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 58eabd5

Please sign in to comment.