vfb_nblast | R Documentation |
Query vfb opencpu server to obtain pre-computed nblast scores
vfb_nblast(
query,
n = 50,
target = c("FlyCircuit", "GMR-Gal4"),
vfb_ids = NA,
server = getOption("vfbr.server.r"),
...
)
query |
A single flycircuit identifier |
n |
The number of hits to return |
target |
The target data set to query |
vfb_ids |
Whether to expect and return VFB identifiers rather than the
ids used in the original dataset. Default value |
server |
The base url of the server |
... |
Additional arguments to be included in the POST |
a data.frame in descending score order with columns
id Flycircuit Neuron name
score NBLAST score
vfb_nblast('fru-M-200266')
# using a VFB id
vfb_nblast('VFB_00014755', n=10)
top10=vfb_nblast('fru-M-200266', target="GMR-Gal4", n = 10)
head(top10)
## Not run:
library(nat.amira)
open_stack_viewer(getOption("vfbr.stack.downloads"), download_gmr_stacks(top10$id))
## End(Not run)
## Not run:
# to use ocpu instance as an API
curl http://r.virtualflybrain.org/ocpu/library/vfbr/R/vfb_nblast/json \
-d 'query="FruMARCM-M002262_seg001"'
# specify number of results to return
curl http://r.virtualflybrain.org/ocpu/library/vfbr/R/vfb_nblast/json \
-d 'query="FruMARCM-M002262_seg001"&n=10'
# all results
curl http://r.virtualflybrain.org/ocpu/library/vfbr/R/vfb_nblast/json \
-d 'query="FruMARCM-M002262_seg001"&n=0'
# with VFB id
curl http://r.virtualflybrain.org/ocpu/library/vfbr/R/vfb_nblast/json \
-d 'query="VFB_00014755"&n=10'
# with VFB id, all results
curl http://r.virtualflybrain.org/ocpu/library/vfbr/R/vfb_nblast/json \
-d 'query="VFB_00014755"&n=0'
## End(Not run)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.