diff --git a/app/components/nextflow/samplesheet/column_component.rb b/app/components/nextflow/samplesheet/column_component.rb index 4d736a126b..214fedbaba 100644 --- a/app/components/nextflow/samplesheet/column_component.rb +++ b/app/components/nextflow/samplesheet/column_component.rb @@ -39,7 +39,7 @@ def render_cell_type(property, entry, sample, fields, index) # rubocop:disable M def render_fastq_cell(sample, property, entry, fields, index) direction = get_fastq_direction(property) - files = get_fastq_files(sample, direction, pe_only: property['pe_only'].present?) + files = get_fastq_files(entry, sample, direction, pe_only: property['pe_only'].present?) data = get_fastq_data(files, direction, index, property) render_file_cell(property, entry, fields, files, @required, data, files&.first) end @@ -50,7 +50,7 @@ def get_fastq_direction(property) property.match(/fastq_(\d+)/)[1].to_i == 1 ? :pe_forward : :pe_reverse end - def get_fastq_files(sample, direction, pe_only: false) + def get_fastq_files(entry, sample, direction, pe_only: false) singles = filter_files_by_pattern(sample.sorted_files[:singles] || [], entry['pattern'] || "/^\S+.f(ast)?q(.gz)?$/")