Skip to content

Commit

Permalink
Merge pull request #42 from nf-core/clahe_prefix_fix
Browse files Browse the repository at this point in the history
Clahe prefix fix
  • Loading branch information
FloWuenne authored Dec 18, 2023
2 parents eecf921 + 6967c92 commit 6c1eef8
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 1 deletion.
6 changes: 6 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,12 @@
The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/)
and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html).

## v1.0.1dev - [2023.12.18]

### `Fixed`

- Changed file prefix used in CLAHE to prevent file naming collisions if user used dots in filenames

## v1.0.1dev - [2023.12.15]

### `Added`
Expand Down
6 changes: 5 additions & 1 deletion conf/modules.config
Original file line number Diff line number Diff line change
Expand Up @@ -162,7 +162,11 @@ process {
}

withName: "CLAHE" {
ext.prefix = { "${meta.id}_${image.name.split("\\.")[0]}_clahe" }
ext.prefix = {
def name = image.name
def base = name.lastIndexOf('.') != -1 ? name[0..name.lastIndexOf('.') - 1] : name
return "${meta.id}_${base}_clahe"
}
ext.when = { !params.skip_clahe }
ext.args = [ "",
params.clahe_pyramid_tile ? "--tile-size ${params.clahe_pyramid_tile}" : "",
Expand Down

0 comments on commit 6c1eef8

Please sign in to comment.