#!/bin/bash -euo pipefail
[ ! -f tih_rna_sample_00403_23H5VFLT4_s29_1.fastq.gz ] && ln -sf tih_rna_sample_00403_23H5VFLT4_s29_R1.fastq.gz tih_rna_sample_00403_23H5VFLT4_s29_1.fastq.gz
[ ! -f tih_rna_sample_00403_23H5VFLT4_s29_2.fastq.gz ] && ln -sf tih_rna_sample_00403_23H5VFLT4_s29_R2.fastq.gz tih_rna_sample_00403_23H5VFLT4_s29_2.fastq.gz
fastp \
--in1 tih_rna_sample_00403_23H5VFLT4_s29_1.fastq.gz \
--in2 tih_rna_sample_00403_23H5VFLT4_s29_2.fastq.gz \
--out1 tih_rna_sample_00403_23H5VFLT4_s29_1.fastp.fastq.gz \
--out2 tih_rna_sample_00403_23H5VFLT4_s29_2.fastp.fastq.gz \
--json tih_rna_sample_00403_23H5VFLT4_s29.fastp.json \
--html tih_rna_sample_00403_23H5VFLT4_s29.fastp.html \
\
\
\
--thread 12 \
--detect_adapter_for_pe \
--reads_to_process 300000000 \
2> tih_rna_sample_00403_23H5VFLT4_s29.fastp.log
cat <<-END_VERSIONS > versions.yml
"NFCORE_RNAFUSION:RNAFUSION:TRIM_WORKFLOW:FASTP":
fastp: $(fastp --version 2>&1 | sed -e "s/fastp //g")
END_VERSIONS