Skip to content

Commit

Permalink
chore: Fixed parameters
Browse files Browse the repository at this point in the history
  • Loading branch information
joshsadam committed Sep 11, 2024
1 parent b76166a commit 8e64892
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions app/components/nextflow/samplesheet/column_component.rb
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand All @@ -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)?$/")

Expand Down

0 comments on commit 8e64892

Please sign in to comment.