fafbseg.flywire.neuron_to_segments¶
- fafbseg.flywire.neuron_to_segments(x, short=False, coordinates='voxel', *, dataset=None)[source]¶
Get root IDs overlapping with a given neuron.
- Parameters:
x (Neuron/List) – Neurons for which to return root IDs. Neurons must be in FlyWire (FAFB14.1) space.
short (bool) – If True will only return the top hit for each neuron (including a confidence score).
coordinates ("voxel" | "nm") – Units the neuron(s) are in. “voxel” is assumed to be 4x4x40 (x/y/z) nanometers.
dataset ("public" | "production" | "sandbox" | "flat_630", optional) – Against which FlyWire dataset to query. If
None
will fall back to the default dataset (seeset_default_dataset()
).
- Returns:
overlap_matrix (pandas.DataFrame) – DataFrame of root IDs (rows) and IDs (columns) with overlap in nodes as values:
id id1 id2 root_id 10336680915 5 0 10336682132 0 1
summary (pandas.DataFrame) –
If
short=True
: DataFrame of top hits only:id match confidence 12345 103366809155 0.87665 412314 103366821325 0.65233
See also
skid_to_id()
Takes a CATMAID (FAFB) skeleton ID or annotations and returns corresponding FlyWire root IDs.