
Create or refresh cache of BANC meta information
Source:R/banc-coconatfly.R
banc_meta_create_cache.Rd
banc_meta_create_cache()
builds or refreshes an in-memory cache of BANC metadata
for efficient repeated lookups. You can choose the data source using use_seatable
.
The main accessor function banc_meta()
will always use the most recently created cache.
Details
BANC meta queries can be slow; caching avoids repeated computation/database access. Whenever labels are updated, simply rerun this function to update the cache.
See also
Other coconatfly:
register_banc_coconat()
Examples
if (FALSE) { # \dontrun{
#' # Requires authenticated access to BANC CAVE
banc_meta_cache(use_seatable=FALSE)
banc_meta_create_cache(use_seatable=TRUE) # create cache
## BANCTABLE_TOKEN must be set, see bancr package
result <- banc_meta() # use cache
# use cache to quickly make plot
library(coconatfly)
# only needed once per session
register_banc_coconat()
cf_cosine_plot(cf_ids('/type:LAL0(08|09|10|42)', datasets = c("banc", "hemibrain")))
} # }