#!/bin/bash -euo pipefail printf "%s %s\n" dna_s777_1.fastp.fastq.gz dna_s777_trimmed_1.gz dna_s777_2.fastp.fastq.gz dna_s777_trimmed_2.gz | while read old_name new_name; do [ -f "${new_name}" ] || ln -s $old_name $new_name done fastqc \ --quiet \ --threads 2 \ dna_s777_trimmed_1.gz dna_s777_trimmed_2.gz cat <<-END_VERSIONS > versions.yml "NFCORE_RNAFUSION:RNAFUSION:TRIM_WORKFLOW:FASTQC_FOR_FASTP": fastqc: $( fastqc --version | sed '/FastQC v/!d; s/.*v//' ) END_VERSIONS