fafbseg.flywire.update_ids

fafbseg.flywire.update_ids(id, sample=0.1, dataset='production', progress=True, **kwargs)[source]

Retrieve the most recent version of given flywire neuron(s).

This function works by:
  1. Fetching all supervoxels for a given to-be-updated ID

  2. Picking a random sample of sample of these supervoxels

  3. Fetching the most recent root IDs for the sample supervoxels

  4. Returning the root ID that was hit the most.

Parameters
  • id (int | list-like) – Single ID or list of flywire (root) IDs.

  • sample (int | float) – Number (>= 1) or fraction (< 1) of super voxels to sample to guess the most recent version.

  • 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 old -> new root IDs with confidence:

old_id   new_id   confidence   changed

0 1

Return type

pandas.DataFrame

Examples

>>> from fafbseg import flywire
>>> flywire.update_ids(720575940621039145)
               old_id              new_id  confidence  changed
0  720575940621039145  720575940621039145           1    False