#!/bin/bash -euo pipefail mkdir -p input_sheets # Copy samplesheet to input_sheets/ (same filename) — only this file is staged cp "cgp_rna_exp0022_v4_v2_sample_type.csv" "input_sheets/" # Copy metadata to input_sheets/metadata.csv if provided (when metadata is a different file from samplesheet) cp 'metadata_staged' input_sheets/metadata.csv cat <<-END_VERSIONS > versions.yml "COPY_INPUT_TO_OUTDIR": python: $(python3 --version | sed 's/Python //g') END_VERSIONS