Skip to content

Commit

Permalink
Changed force-pyramid to process a single file instead of groups of f…
Browse files Browse the repository at this point in the history
…iles
  • Loading branch information
Felix-Kummer committed Oct 11, 2024
1 parent 99ff909 commit 605f154
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 5 deletions.
6 changes: 2 additions & 4 deletions modules/local/force-pyramid/main.nf
Original file line number Diff line number Diff line change
Expand Up @@ -16,10 +16,8 @@ process FORCE_PYRAMID {

script:
"""
files="*.tif"
for file in \$files; do
force-pyramid \$file
done;
file="*.tif"
force-pyramid \$file
cat <<-END_VERSIONS > versions.yml
"${task.process}":
Expand Down
2 changes: 1 addition & 1 deletion subworkflows/local/higher_level.nf
Original file line number Diff line number Diff line change
Expand Up @@ -54,7 +54,7 @@ workflow HIGHER_LEVEL {

pyramid_files = Channel.empty()
if (pyramid_visualization) {
FORCE_PYRAMID( trend_files.filter { it[1].name.endsWith('.tif') }.map { [ it[1].simpleName.substring(0,11), it[1] ] } .groupTuple() )
FORCE_PYRAMID( trend_files.filter { it[1].name.endsWith('.tif') }.map { [ it[1].simpleName.substring(0,11), it[1] ] } )
pyramid_files = FORCE_PYRAMID.out.trends
ch_versions = ch_versions.mix(FORCE_PYRAMID.out.versions.first())
}
Expand Down

0 comments on commit 605f154

Please sign in to comment.