#!/bin/bash -euo pipefail
mkdir -p BreastNB_FFPE_L01_RNA_01_B23LG7FLT4_1 && kallisto quant \
--threads 4 \
--index kallisto \
--gtf Homo_sapiens.GRCh38.102.gtf \
\
\
\
--seed 1 \
-o BreastNB_FFPE_L01_RNA_01_B23LG7FLT4_1 \
BreastNB_FFPE_L01_RNA_01_B23LG7FLT4_1_1.fastp.fastq.gz BreastNB_FFPE_L01_RNA_01_B23LG7FLT4_1_2.fastp.fastq.gz 2> >(tee -a BreastNB_FFPE_L01_RNA_01_B23LG7FLT4_1/kallisto_quant.log >&2)
cp BreastNB_FFPE_L01_RNA_01_B23LG7FLT4_1/kallisto_quant.log BreastNB_FFPE_L01_RNA_01_B23LG7FLT4_1.log
cp BreastNB_FFPE_L01_RNA_01_B23LG7FLT4_1/abundance.h5 BreastNB_FFPE_L01_RNA_01_B23LG7FLT4_1.abundance.h5
cp BreastNB_FFPE_L01_RNA_01_B23LG7FLT4_1/abundance.tsv BreastNB_FFPE_L01_RNA_01_B23LG7FLT4_1.abundance.tsv
cp BreastNB_FFPE_L01_RNA_01_B23LG7FLT4_1/run_info.json BreastNB_FFPE_L01_RNA_01_B23LG7FLT4_1.run_info.json
cat <<-END_VERSIONS > versions.yml
"NFCORE_RNAFUSION:RNAFUSION:KALLISTO_QUANT":
kallisto: $(echo $(kallisto version) | sed "s/kallisto, version //g" )
END_VERSIONS