#!/bin/bash -euo pipefail
mkdir -p tih_rna_sample_00583_B23MVV7LT4_1 && kallisto quant \
--threads 4 \
--index kallisto \
--gtf Homo_sapiens.GRCh38.102.gtf \
\
\
\
--seed 1 \
-o tih_rna_sample_00583_B23MVV7LT4_1 \
tih_rna_sample_00583_B23MVV7LT4_1_1.fastp.fastq.gz tih_rna_sample_00583_B23MVV7LT4_1_2.fastp.fastq.gz 2> >(tee -a tih_rna_sample_00583_B23MVV7LT4_1/kallisto_quant.log >&2)
cp tih_rna_sample_00583_B23MVV7LT4_1/kallisto_quant.log tih_rna_sample_00583_B23MVV7LT4_1.log
cp tih_rna_sample_00583_B23MVV7LT4_1/abundance.h5 tih_rna_sample_00583_B23MVV7LT4_1.abundance.h5
cp tih_rna_sample_00583_B23MVV7LT4_1/abundance.tsv tih_rna_sample_00583_B23MVV7LT4_1.abundance.tsv
cp tih_rna_sample_00583_B23MVV7LT4_1/run_info.json tih_rna_sample_00583_B23MVV7LT4_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