VfbConnect | R Documentation |
Return reference to VfbConnect object
VfbConnect(..., raw = FALSE, cache = TRUE)
... |
Additional arguments passed to Python's 'VfbConnect'. See examples. |
raw |
Whether to return python list containing raw JSON (default
|
cache |
Whether to cache the VfbConnect object (default |
See https://pypi.org/project/vfb-connect/. The raw=TRUE
option is mostly useful to see what output would look like.
An list
containing the processed results or (when
raw=TRUE
) as python list containing raw JSON.
vc=VfbConnect()
# large return, so use str
str(vc$neo_query_wrapper$get_type_TermInfo(list('FBbt_00003686')), max=2)
# do this to explore
# vc$neo_query_wrapper$get_type_TermInfo(list('FBbt_00003686')) %>% View()
vc$neo_query_wrapper$get_type_TermInfo(list('FBbt_00003686'), summary=TRUE)
# the same but returning raw JSON
vc2=VfbConnect(raw=TRUE)
vc2$neo_query_wrapper$get_type_TermInfo(list('FBbt_00003686'), summary=TRUE)
# Information about a dataset linked to a paper
vc$neo_query_wrapper$get_DataSet_TermInfo(list('Ito2013'), summary=TRUE)
vc$neo_query_wrapper$get_anatomical_individual_TermInfo(list('VFB_00010001'), summary=TRUE) %>%
vc_df()
# Get all terms relevant to a brain region (all parts and all overlapping cells)
# Query by label supported by default
#
vc$get_terms_by_region('fan-shaped body', summary=TRUE) %>%
vc_df() %>%
head(10)
## Not run:
# specify a particular neo4j graph database endpoint
vc = VfbConnect(neo_endpoint="http://pdb.p2.virtualflybrain.org")
## End(Not run)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.