#!/bin/bash -euo pipefail
vcf_collect.py \
--fusioninspector rna_s1221_S42.FusionInspector.fusions.abridged.tsv.annotated.coding_effect \
--fusionreport rna_s1221_S42_fusionreport_index.html \
--fusioninspector_gtf rna_s1221_S42.tsv \
--fusionreport_csv rna_s1221_S42.fusions.csv \
--hgnc hgnc_complete_set.txt \
--sample rna_s1221_S42 \
--out rna_s1221_S42.fusion_data.vcf \
--arriba_fusions rna_s1221_S42.arriba.fusions.filtered_pass_only.tsv \
--use_chr_prefix
sort_fusion_vcf_mateid.py \
--input rna_s1221_S42.fusion_data.vcf
bgzip rna_s1221_S42.fusion_data.vcf
cat <<-END_VERSIONS > versions.yml
"NFCORE_RNAFUSION:RNAFUSION:FUSIONINSPECTOR_WORKFLOW:VCF_COLLECT":
python: $(python --version | sed 's/Python //g')
HGNC DB retrieval: $(cat HGNC-DB-timestamp.txt)
END_VERSIONS