#!/bin/bash -euo pipefail bam_stat.py \ -i tih_rna_sample_00570_B23MVV7LT4_1.Aligned.sortedByCoord.out.bam tih_rna_sample_00570_B23MVV7LT4_1.Aligned.sortedByCoord.out.bam.bai \ \ > tih_rna_sample_00570_B23MVV7LT4_1.bam_stat.txt cat <<-END_VERSIONS > versions.yml "NFCORE_RNAFUSION:RNAFUSION:QC_WORKFLOW:BAM_RSEQC:RSEQC_BAMSTAT": rseqc: $(bam_stat.py --version | sed -e "s/bam_stat.py //g") END_VERSIONS