BlueBrain / emodel-generalisation

Generalisation of electrical models of neurons with MCMC
Other
4 stars 3 forks source link

[Feature request] Improve config layout so that emodels can be re-used #25

Closed eleftherioszisis closed 8 months ago

eleftherioszisis commented 10 months ago

Describe the feature

Allow defining unique emodels and reference to them in the main configuration. This will help avoid generating hoc files for the same emodel again and again and will improve the computation time of the app.

Example Use

{
  "@library": {
    "eModels": {
      "id-1": {
        "EModel": "/gpfs/bbp.cscs.ch/data/project/proj134/nexus/bbp/mmb-point-neuron-framework-model/3/e/3/1/5/c/f/EM__emodel=cADpyr__etype=cADpyr__iteration=b40985f__7.json",
        "ExtractionTargetsConfiguration": "/gpfs/bbp.cscs.ch/data/project/proj134/nexus/bbp/mmb-point-neuron-framework-model/4/3/6/a/c/b/3/9/ETC__emodel=cADpyr__etype=cADpyr__iteration=b40985f.json",
        "EModelPipelineSettings": "/gpfs/bbp.cscs.ch/data/project/proj134/nexus/bbp/mmb-point-neuron-framework-model/e/4/2/1/8/8/5/d/EMPS__emodel=cADpyr__etype=cADpyr__iteration=b40985f.json",
        "FitnessCalculatorConfiguration": "/gpfs/bbp.cscs.ch/data/project/proj134/nexus/bbp/mmb-point-neuron-framework-model/5/6/3/d/f/b/4/2/FCC__emodel=cADpyr__etype=cADpyr__iteration=b40985f.json",
        "EModelConfiguration": "/gpfs/bbp.cscs.ch/project/proj134/scratch/workflow-outputs/14122023-7e57c709-7b1b-448b-bd84-5b6f786bc704/meModelConfig/stage/EMC__emodel=cADpyr__etype=cADpyr__iteration=b40"
      }
    }
  },
  "configuration": {
    "AAA": {
      "GEN_mtype":{
        "GIN_etype": {
          "assignmentAlgorithm": "assignOne",
          "eModel": "id-1"
        }
      }
    },
    "ACAd1": {
      "L1_DAC": {
        "bNAC": {
          "assignmentAlgorithm": "assignOne",
          "eModel": "id-1"
        }
      }
    }
  }
}

Use cases

See above

arnaudon commented 8 months ago

I forgot to close this, it has be done.