To identify whether our putative viral contigs were expressed endogenous viral elements, we initially searched for disrupted ORFs using Geneious Prime (v.2022.0). Next, we screened for flanking host regions using CheckV and BLASTn. We also searched for flanking long terminal repeats as these are associated with integrated proviruses (Johnson 2019 (link)). Contigs with intact ORFs that were not flanked by host genes or repeats were subsequently used as a query against all vertebrate genomes available on NCBI using tblastn, with an e-value threshold of 1 × 10–20 (Shi et al. 2018 (link)). We used all published vertebrate genomes as no genomes are currently available for the reef fish studied here. Viral sequences identified as endogenous were removed from subsequent analyses.