fafbseg.flywire.merge_flywire_neuron

fafbseg.flywire.merge_flywire_neuron(id, target_instance, tag, flywire_dataset='production', assert_id_match=True, drop_soma_hairball=True, **kwargs)[source]

Merge flywire neuron into FAFB.

This function (1) fetches a mesh from flywire, (2) turns it into a skeleton, (3) maps the coordinates to FAFB 14 and (4) runs fafbseg.merge_neuron to merge the skeleton into CATMAID. See Examples below on how to run these individual steps yourself if you want more control over e.g. how the mesh is skeletonized.

Parameters
  • id (int) – ID of the flywire neuron you want to merge.

  • target_instance (pymaid.CatmaidInstance) – Instance to merge the neuron into into.

  • tag (str) – You personal tag to add as annotation once import into CATMAID is complete.

  • dataset (str | CloudVolume) –

    Against which flywire dataset to query::
    • ”production” (current production dataset, fly_v31)

    • ”sandbox” (i.e. fly_v26)

  • assert_id_match (bool) – If True, will check if skeleton nodes map to the correct segment ID and if not will move them back into the segment. This is potentially very slow!

  • drop_soma_hairball (bool) – If True, we will try to drop the hairball that is typically created inside the soma.

  • **kwargs – Keyword arguments are passed on to fafbseg.merge_neuron.

Examples

# Import flywire neuron >>> _ = merge_flywire_neuron(id=720575940610453042, … cvpath=’graphene://https://prodv1.flywire-daf.com/segmentation/1.0/fly_v26’, … target_instance=manual, … tag=’WTCam’)