Fetch sequences from BOLD
fetch_bold(
x,
marker = "COI-5P",
output = "gb-binom",
quiet = FALSE,
db = NULL,
retry_attempt = 3,
retry_wait = 5
)
A taxon name or vector of taxa to download sequences for
the barcode marker used as a search term for the database
the output format for the taxonomy in fasta headers.
Options include "h" for full heirarchial taxonomy (Accession;Domain;Phylum;Class;Order;Family;Genus;Species),
"binom" for just genus species binomials (Accession;Genus_species),
"bold" for BOLD taxonomic ID only (Accession;BoldTaxID),
"gb" for genbank taxonomic ID (Accession|GBTaxID),
"gb-binom" which outputs genbank taxonomic ID's and Genus species binomials, translating BOLD taxonomic ID's to genbank in the process (Accession|GBTaxID;Genus_species)
or "standard" which outputs the default format for each database. For genbank this is the description field, and for bold this is sampleid|species name|markercode|genbankid
Whether progress should be printed to the console.
(Optional) a database file generated using taxreturn::get_ncbi_taxonomy()
or taxreturn::get_ott_taxonomy()
The number of query attempts in case of query failure due to poor internet connection.
How long to wait between query attempts