NeuroTS icon indicating copy to clipboard operation
NeuroTS copied to clipboard

[Feature request] Different diametrizer for each neurite type

Open adrien-berchet opened this issue 2 years ago • 2 comments

Describe the feature

Currently we can only provide one diametrizer that is used for all neurite types (though a diametrizer can be configured differently for each neurite type). I think it could be interesting to be able to provide one different diametrizer for each neurite type. WDYT?

Example Use

A tmd_parameters.json could have an entry like:

"diameter_params": {
    "basal_dendrite": {
        "method": "uniform",
        "diameter": 0.6
    },
    "apical_dendrite": {
        "method": "default"
    },
    "axon": {
        "method": "M1"
    }
}

or it could be directly included in each neurite type config, which would make even more sense:

{
    "basal_dendrite": {
        "all other params..." : "...",
        "diameter_params": {
            "method": "uniform",
            "diameter": 0.6
        }
    },
    "apical_dendrite": {
        "all other params..." : "...",
        "diameter_params": {
            "method": "default"
        }
    },
    "grow_types": ["basal_dendrite", "apical_dendrite"],
    "...": "..."
}

Use cases

I don't know if such a use case is relevant for a user, I just realized that currently we can't synthesize morphologies with this kind of configurations.

adrien-berchet avatar Sep 21 '23 09:09 adrien-berchet

we can do it if its needed, otherwise I wouldn't do it 'for free'

arnaudon avatar Sep 21 '23 09:09 arnaudon

I agree, it's just an idea but let's wait to see if this use case actually arises.

adrien-berchet avatar Sep 22 '23 09:09 adrien-berchet