vfb_fromvfbids | R Documentation |
Convert between VFB and external identifiers
vfb_fromvfbids(vfbids, ..., mustWork = NA)
vfb_tovfbids(ids, fixed = TRUE, ...)
vfbids |
One or more vfb identifiers. Solr wildcards can also be used
when |
... |
Additional arguments passed to |
mustWork |
logical: if |
ids |
One or more external identifiers. Solr wildcards can also be used
when |
fixed |
Whether to insist on exact matches. When |
Note that these functions are not appropriate for fetching more than ~ 200 identifiers individually specified identifiers. If a large number of identifiers are required, it is a much better idea to fetch all ids and then filter locally.
A character vector of vfb ids (for vfb_fromvfbids
) or external
identifiers (for vfb_tovfbids
) in the same order as the input query.
Missing values will be denoted by NA
s when fixed=TRUE
. When
fixed=FALSE
and a wild-card search returns no results a character
vector of length 0 will be returned.
gmr_vfbid
, vfb_solr_query
, which powers
the underlying queries.
# some flycircuit ids
fcids=c("VGlut-F-000304", "VGlut-F-200278", "fru-F-200121", "TH-F-300016")
vfbids=vfb_tovfbids(fcids)
vfb_fromvfbids(vfbids)
# make up a fake id for testing - will give a warning
vfb_fromvfbids(c(vfbids, "VFB_10013392"))
# Some GMR GAL4 lines
gmrs=c('93D09', '87F10')
vfb_tovfbids(sprintf("GMR_%s*", gmrs), fixed=FALSE)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.