#!/bin/bash -euo pipefail printf "%s %s\n" tih_rna_sample_00090_B23WHTKLT4_1_1.fastp.fastq.gz tih_rna_sample_00090_B23WHTKLT4_1_trimmed_1.gz tih_rna_sample_00090_B23WHTKLT4_1_2.fastp.fastq.gz tih_rna_sample_00090_B23WHTKLT4_1_trimmed_2.gz | while read old_name new_name; do [ -f "${new_name}" ] || ln -s $old_name $new_name done fastqc \ --quiet \ --threads 2 \ tih_rna_sample_00090_B23WHTKLT4_1_trimmed_1.gz tih_rna_sample_00090_B23WHTKLT4_1_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