#!/bin/bash -euo pipefail printf "%s %s\n" tih_rna_sample_00164_B23WHTKLT4_2_R1.fastq.gz tih_rna_sample_00164_B23WHTKLT4_2_1.gz tih_rna_sample_00164_B23WHTKLT4_2_R2.fastq.gz tih_rna_sample_00164_B23WHTKLT4_2_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_00164_B23WHTKLT4_2_1.gz tih_rna_sample_00164_B23WHTKLT4_2_2.gz cat <<-END_VERSIONS > versions.yml "NFCORE_RNAFUSION:RNAFUSION:FASTQC": fastqc: $( fastqc --version | sed '/FastQC v/!d; s/.*v//' ) END_VERSIONS