Skip to content

Commit

Permalink
bug fix for issue nf-core#28: sort and not recurse image_directory
Browse files Browse the repository at this point in the history
  • Loading branch information
RobJY committed May 7, 2024
1 parent d441175 commit c0689fa
Showing 1 changed file with 3 additions and 4 deletions.
7 changes: 3 additions & 4 deletions subworkflows/local/utils_nfcore_mcmicro_pipeline/main.nf
Original file line number Diff line number Diff line change
Expand Up @@ -325,11 +325,10 @@ def make_ashlar_input_sample( samplesheet_row ) {
} else {
// TODO: remove this option or allow it to grab all files when no column in the samplesheet?
def image_dir = samplesheet_row[index_sample_image_directory]
image_dir.eachFileRecurse (FileType.FILES) {
if(it.toString().endsWith(".ome.tif")){
cycle_images << file(it)
}
image_dir.eachFileMatch (FileType.FILES, ~/^.*\.ome.tif$/) {
cycle_images << file(it)
}
cycle_images.sort()
}

return [[id:samplesheet_row[index_sample_sample]], cycle_images]
Expand Down

0 comments on commit c0689fa

Please sign in to comment.