flywire_scene: Return a sample Neuroglancer scene URL for FlyWire dataset

View source: R/flywire-urls.R

flywire_sceneR Documentation

Return a sample Neuroglancer scene URL for FlyWire dataset

Description

Return a sample Neuroglancer scene URL for FlyWire dataset

Usage

flywire_scene(
  ids = NULL,
  annotations = NULL,
  open = FALSE,
  shorten = FALSE,
  segmentation = "flywire31",
  ...
)

Arguments

ids

A set of root ids to include in the scene. Also accepts a data.frame containing a column rootid, root_id, id or any form acceptable to ngl_segments including neuroglancer scene URLs.

annotations

data.frame or matrix of position and other information for annotation layers. See ngl_annotation_layers for details.

open

Whether to open the scene in your default browser

shorten

Not currently implemented

segmentation

Defaults to 'flywire31'. See choose_segmentation for other options.

...

Passed to ngl_annotation_layers

Value

A character vector containing a single Neuroglancer URL (invisibly when open=TRUE)

See Also

Other neuroglancer-urls: flywire_ids(), ngl_blank_scene(), ngl_decode_scene(), ngl_encode_url(), ngl_segments(), open_fafb_ngl()

Examples

## Not run: 
flywire_scene(open=T)
# top 20 partners of a neuron
flywire_scene(flywire_partner_summary("720575940621039145", partners='out')$partner[1:20], open=T)

# using the ability to query flytable for cell types
flywire_scene('DA2_lPN', open=TRUE)
flywire_scene('class:MBON_R', open=TRUE)

## End(Not run)

natverse/fafbseg documentation built on Nov. 11, 2024, 9:50 p.m.