vfb_nblast: Query vfb opencpu server to obtain pre-computed nblast scores

Description Usage Arguments Value Examples

View source: R/vfb_nblast.R

Description

Query vfb opencpu server to obtain pre-computed nblast scores

Usage

1
2
3
4
5
6
7
8
vfb_nblast(
  query,
  n = 50,
  target = c("FlyCircuit", "GMR-Gal4"),
  vfb_ids = NA,
  server = getOption("vfbr.server.r"),
  ...
)

Arguments

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 vfb_ids=NA attempts to autodetect and return VFB ids.

server

The base url of the server

...

Additional arguments to be included in the POST

Value

a data.frame in descending score order with columns

Examples

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
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)

jefferis/vfbr documentation built on Feb. 17, 2021, 4:46 p.m.