fafbseg.flywire.get_lineage_graph#

fafbseg.flywire.get_lineage_graph(x, size=False, user=False, synapses=False, proofreading_status=False, progress=True, *, dataset=None)[source]#

Get lineage graph for given neuron.

This piggy-backs on the CAVEclient but importantly we remap users and operation IDs such that each node’s labels refer to the operation that created them.

Parameters:
  • x (int) – A single root ID.

  • size (bool) – If True, will add size and survivals node attributes. The former indicates the number of supervoxels, the latter how many of these supervoxels made it into x.

  • synapses (bool) – If True, will add pre|post|synapses node attributes which indicate how many of the synapses in x came from this fragment. Note that this doesn’t tell you e.g. how many false-positive synapses were removed via a split. This works only if the root ID is up-to-date.

  • user (bool) – If True, will add user user node attribute.

  • proofreading_status (bool) – If True, will add a proofread_by node attribute indicating if a user has set a given root ID to proofread.

Return type:

networkx.DiGraph