#!/bin/bash -euo pipefail
flowcell_qc.py \
--runinfo RunInfo.xml --tile-metrics TileMetricsOut.bin --ext-tile-metrics ExtendedTileMetricsOut.bin --phasing-metrics EmpiricalPhasingMetricsOut.bin \
--demux-stats ds*/* \
--quality-metrics qm*/* \
--index-hopping ih*/* \
--output flowcell_qc.csv
cat <<-END_VERSIONS > versions.yml
"NFCORE_RNAFUSION:DEMUX_FROM_RUNDIR:DEMULTIPLEX:FLOWCELL_QC":
python: $(python --version | sed 's/Python //g')
interop: $(python -c 'import interop; print(interop.__version__)' 2>/dev/null || echo 'N/A')
flowcell_qc: 1.2.0
END_VERSIONS