axon_synthesis.synthesis.target_points

Find the target points of the input morphologies.

Functions

compute_coords(target_points, ...[, atlas])

Compute the target coordinates if they are missing.

drop_close_points(all_points_df, ...)

Drop points that are closer to a given distance.

get_target_points(source_points, ...[, ...])

Find the target points for all given source points.

pick_target_populations(probs, rng[, ...])

Pick target populations for each source point.

select_close_points_in_group(all_points_df, ...)

Select points that are closer to a given distance.

axon_synthesis.synthesis.target_points.compute_coords(target_points: DataFrame, brain_regions_masks: File | None, rng: Generator, *, atlas: AtlasHelper | None = None) None

Compute the target coordinates if they are missing.

axon_synthesis.synthesis.target_points.drop_close_points(all_points_df: DataFrame, duplicate_precision: float | None) DataFrame

Drop points that are closer to a given distance.

axon_synthesis.synthesis.target_points.get_target_points(source_points, target_probabilities, tufts_dist_df: DataFrame | None = None, duplicate_precision: float | None = None, *, atlas: AtlasHelper | None = None, brain_regions_masks: File | None = None, rng: None | int | Sequence[int] | SeedSequence | BitGenerator | Generator = None, max_tries: int = 10, output_path: str | PathLike | None = None, logger: Logger | LoggerAdapter | None = None)

Find the target points for all given source points.

axon_synthesis.synthesis.target_points.pick_target_populations(probs, rng, logger=None, max_tries=10)

Pick target populations for each source point.

axon_synthesis.synthesis.target_points.select_close_points_in_group(all_points_df: DataFrame, duplicate_precision: float | None) dict

Select points that are closer to a given distance.