Skip to content

Commit

Permalink
FastQC: Avoid NXF langserver warning (#7069)
Browse files Browse the repository at this point in the history
New Nextflow language server throws a warning about this variable as it's unused. Prefixing with an underscore resolves this.
  • Loading branch information
ewels authored Nov 24, 2024
1 parent c2b22d8 commit dc94b6e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion modules/nf-core/fastqc/main.nf
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ process FASTQC {
// Make list of old name and new name pairs to use for renaming in the bash while loop
def old_new_pairs = reads instanceof Path || reads.size() == 1 ? [[ reads, "${prefix}.${reads.extension}" ]] : reads.withIndex().collect { entry, index -> [ entry, "${prefix}_${index + 1}.${entry.extension}" ] }
def rename_to = old_new_pairs*.join(' ').join(' ')
def renamed_files = old_new_pairs.collect{ old_name, new_name -> new_name }.join(' ')
def renamed_files = old_new_pairs.collect{ _old_name, new_name -> new_name }.join(' ')

// The total amount of allocated RAM by FastQC is equal to the number of threads defined (--threads) time the amount of RAM defined (--memory)
// https://github.com/s-andrews/FastQC/blob/1faeea0412093224d7f6a07f777fad60a5650795/fastqc#L211-L222
Expand Down

0 comments on commit dc94b6e

Please sign in to comment.