
Fetch NCBI references for many accessions using batched EFetch requests
Source:R/blast_ref_utils.R
fetch_blast_refs.RdReduces NCBI round-trips by fetching all accessions' GFF3 and FASTA in one
request each (plus one taxonomy request per unique taxid), then writing one
`ref_<accession>/` subdirectory per accession (annotations CSV, sequence,
genetic code, JSON) under out_dir. The concatenated responses are split
by accession key, so a scrambled batch can never misassign a record. Any
accession the batch cannot produce (missing/invalid chunk, or a failed batched
HTTP call) falls back to a per-accession [fetch_blast_ref()] call. A fully
failed accession produces no output dir (its samples are flagged downstream),
matching the old one-accession-per-task behavior.