#!/bin/bash -euo pipefail
[ ! -f tih_rna_sample_00624_B23MVV7LT4_1_1.fastq.gz ] && ln -sf tih_rna_sample_00624_B23MVV7LT4_1_R1.fastq.gz tih_rna_sample_00624_B23MVV7LT4_1_1.fastq.gz
[ ! -f tih_rna_sample_00624_B23MVV7LT4_1_2.fastq.gz ] && ln -sf tih_rna_sample_00624_B23MVV7LT4_1_R2.fastq.gz tih_rna_sample_00624_B23MVV7LT4_1_2.fastq.gz
fastp \
--in1 tih_rna_sample_00624_B23MVV7LT4_1_1.fastq.gz \
--in2 tih_rna_sample_00624_B23MVV7LT4_1_2.fastq.gz \
--out1 tih_rna_sample_00624_B23MVV7LT4_1_1.fastp.fastq.gz \
--out2 tih_rna_sample_00624_B23MVV7LT4_1_2.fastp.fastq.gz \
--json tih_rna_sample_00624_B23MVV7LT4_1.fastp.json \
--html tih_rna_sample_00624_B23MVV7LT4_1.fastp.html \
\
\
\
--thread 12 \
--detect_adapter_for_pe \
--reads_to_process 300000000 \
2> tih_rna_sample_00624_B23MVV7LT4_1.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