fafbseg.flywire.encode_url¶
-
fafbseg.flywire.
encode_url
(segments=None, annotations=None, coords=None, skeletons=None, dataset='production', scene=None, open_browser=False, to_clipboard=False, short=True)[source]¶ Encode data as flywire neuroglancer scene.
- Parameters
segments (int | list of int) – Segment IDs to have selected.
annotations ((N, 3) array) – 2d of xyz coordinates that will be added as annotation layer. If you need more control over this, see
fafbseg.flywire.add_annotation_layer()
.coords ((3, ) array) – (X, Y, Z) pixel coordinates to center on.
skeletons (navis.TreeNeuron | navis.CatmaidNeuron | NeuronList) – Skeleton(s) to add as annotation layer(s).
dataset ('production' | 'sandbox') – Segmentation dataset to use.
scene (dict | str) – If you want to edit an existing scene, provide it either as already decoded dictionary or as string that can be interpreted by
fafbseg.flywire.decode_url()
.open_brower (bool) – If True, will open the url in a new tab of your webbrowser. By default, we will first try to open in Google Chrome and failing that fall back to your default browser.
to_clipboard (bool) – If True, will copy URL to clipboard.
short (bool) – If True, will make a shortened URL.
- Returns
url
- Return type
str