axon_synthesis.white_matter_recipe¶
Helpers for white matter recipe.
Functions
|
Fetch the White Natter Recipe file from an internal repository. |
|
Get the ID of an atlas region. |
|
Load the white matter recipe from YAML file. |
Classes
|
Class to store the White Matter Recipe data. |
|
Class to store the WhiteMatterRecipe configuration. |
- class axon_synthesis.white_matter_recipe.WhiteMatterRecipe(path, *, load=True)¶
Bases:
BasePathBuilderClass to store the White Matter Recipe data.
- compute_probabilities(atlas: AtlasHelper)¶
Compute projection probabilities from the White Matter Recipe.
- load()¶
Load the White Matter Recipe from the associated directory.
- load_from_raw_wmr(config: WmrConfig, atlas: AtlasHelper)¶
Process the white matter recipe.
- save()¶
Save the White Matter Recipe into the given directory.
- class axon_synthesis.white_matter_recipe.WmrConfig(path, subregion_uppercase: bool, subregion_remove_prefix: bool, sub_region_separator: str)¶
Bases:
objectClass to store the WhiteMatterRecipe configuration.
- axon_synthesis.white_matter_recipe.fetch(url, output_path, file_path='white_matter_FULL_RECIPE_v1p20.yaml', version_reference=None)¶
Fetch the White Natter Recipe file from an internal repository.
- axon_synthesis.white_matter_recipe.get_atlas_region_id(region_map, pop_row, col_name, second_col_name=None)¶
Get the ID of an atlas region.