fafbseg.flywire.skid_to_id¶
-
fafbseg.flywire.
skid_to_id
(x, dataset='production', progress=True, **kwargs)[source]¶ Find the flywire ID(s) corresponding to given CATMAID skeleton ID(s).
- This function works by:
Fetch supervoxels for all nodes in the CATMAID skeletons
Pick a random sample of
sample
of these supervoxelsFetch the most recent root IDs for the sample supervoxels
Return the root ID that collectively cover 90% of the supervoxels
- Parameters
x (int | list-like | str | TreeNeuron/List) – Anything that’s not a TreeNeuron/List will be passed directly to
pymaid.get_neuron
.dataset (str | CloudVolume) –
- Against which flywire dataset to query::
”production” (current production dataset, fly_v31)
”sandbox” (i.e. fly_v26)
progress (bool) – If True, shows progress bar.
- Returns
Mapping of flywire IDs to skeleton IDs with confidence:
flywire_id skeleton_id confidence
0 1
- Return type
pandas.DataFrame