axon_synthesis.inputs.clustering.from_brain_regions

Clustering from brain regions.

Functions

compute_clusters(atlas, wmr, config, ...[, ...])

Gather points according to connected components in brain regions.

cut_edges(edges, nodes, brain_regions, ...)

Cut edges according to brain regions.

merge_similar_regions(regions, sub_segments)

Merge similar consecutive region IDs and corresponding sub-segments.

plot(region_component_subgraphs, ...)

Plot the resulting nodes and edges.

segment_region_ids(row, brain_regions)

Split segments according to brain regions and get the regions IDs.

axon_synthesis.inputs.clustering.from_brain_regions.compute_clusters(atlas, wmr, config, config_name, axon, axon_id, group_name, group_path, group, nb_workers, tuft_morphologies_path, figure_path, *, debug=False, **_kwargs)

Gather points according to connected components in brain regions.

axon_synthesis.inputs.clustering.from_brain_regions.cut_edges(edges, nodes, brain_regions, nb_workers, group_name)

Cut edges according to brain regions.

axon_synthesis.inputs.clustering.from_brain_regions.merge_similar_regions(regions, sub_segments)

Merge similar consecutive region IDs and corresponding sub-segments.

axon_synthesis.inputs.clustering.from_brain_regions.plot(region_component_subgraphs, region_acronyms, filepath)

Plot the resulting nodes and edges.

axon_synthesis.inputs.clustering.from_brain_regions.segment_region_ids(row, brain_regions)

Split segments according to brain regions and get the regions IDs.