View source: R/fetch_metadata.R
fetch_metadata_chunked | R Documentation |
fetch_metadata() queries the NCBI API online, so we should do this in smaller chunks to avoid errors.
fetch_metadata_chunked(id, col_select = c("gi", "caption", "taxid",
"title", "slen", "subtype", "subname"), higher_taxa = FALSE,
chunk_size = 100)
id |
Character vector of IDs for GenBank records. Output of rentrez::entrez_search(). |
col_select |
Vector of column names to return. |
higher_taxa |
Logical; should higher taxonomic ranks (family and order) be included in the results? |
chunk_size |
Number of rows to use for each chunk. |
A list of two items, 'results' and 'error'.
## Not run:
fetch_metadata_chunked(c("383212727", "383212725"))
## End(Not run)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.