
Re-stamp per-sample BLAST hit metadata onto a cached reference JSON
Source:R/blast_ref_utils.R
patch_blast_ref_meta.RdThe BLAST reference JSON produced by [fetch_blast_ref()] is cached and shared
across all samples whose top hit is the same accession (see the
blast_ref_fetch Nextflow process). Every field is accession-derived
except the per-sample BLAST hit metadata, so after a sample copies the cached
JSON this rewrites blast_species and blast_evalue for that
sample. No-op if the file is missing or unreadable.