| 1 | <?xml version="1.0" encoding="UTF-8"?> |
|---|
| 2 | |
|---|
| 3 | <neuroml xmlns="http://www.neuroml.org/schema/neuroml2" |
|---|
| 4 | xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" |
|---|
| 5 | xsi:schemaLocation="http://www.neuroml.org/schema/neuroml2 ../Schemas/NeuroML2/NeuroML_v2alpha.xsd" |
|---|
| 6 | id="NML2_NestedNetworks"> |
|---|
| 7 | |
|---|
| 8 | <!-- Example of a nested network in NeuroML 2 --> |
|---|
| 9 | |
|---|
| 10 | <!-- This is a "pure" NeuroML 2 file. It cannot yet be used a simulation by the LEMS |
|---|
| 11 | Interpreter, but this represents the target structure for populations & projections |
|---|
| 12 | in NeuroML 2 --> |
|---|
| 13 | |
|---|
| 14 | <!-- The base network from which to build the main network --> |
|---|
| 15 | |
|---|
| 16 | <network id="BaseNetwork"> |
|---|
| 17 | |
|---|
| 18 | <population id="Excitatory" cell="Cell_E"> |
|---|
| 19 | <layout space="Grid_1D"> |
|---|
| 20 | <grid xSize="2"/> |
|---|
| 21 | </layout> |
|---|
| 22 | </population> |
|---|
| 23 | |
|---|
| 24 | <population id="Inhibitory" cell="Cell_I"> |
|---|
| 25 | <layout space="Grid_1D"> |
|---|
| 26 | <grid xSize="1"/> |
|---|
| 27 | </layout> |
|---|
| 28 | </population> |
|---|
| 29 | |
|---|
| 30 | <!-- some local connections within this unit--> |
|---|
| 31 | |
|---|
| 32 | <projection id="InternalRecurrentExc"> |
|---|
| 33 | <source population="Excitatory"/> |
|---|
| 34 | <target population="Excitatory"/> |
|---|
| 35 | <!-- Further elements needed here... --> |
|---|
| 36 | </projection> |
|---|
| 37 | |
|---|
| 38 | <projection id="InternalExcInh"> |
|---|
| 39 | <source population="Excitatory"/> |
|---|
| 40 | <target population="Inhibitory"/> |
|---|
| 41 | <!-- Further elements needed here... --> |
|---|
| 42 | </projection> |
|---|
| 43 | |
|---|
| 44 | <!-- More... --> |
|---|
| 45 | |
|---|
| 46 | </network> |
|---|
| 47 | |
|---|
| 48 | <!-- The main population which consists of copies of the base unit --> |
|---|
| 49 | |
|---|
| 50 | <network id="NestedNetwork"> |
|---|
| 51 | |
|---|
| 52 | <!-- Space of discrete points in 2D space. Grid_2D can be defined elsewhere/inbuilt. |
|---|
| 53 | As this is defined at the top level, it is accessible for all sub populations & networks --> |
|---|
| 54 | |
|---|
| 55 | <space id="2D_discrete" basedOn="Grid_2D"> |
|---|
| 56 | <structure xSpacing="10" ySpacing="10"/> <!-- Optional extra info to aid visualisation, but may be |
|---|
| 57 | used for connection setups too...--> |
|---|
| 58 | </space> |
|---|
| 59 | |
|---|
| 60 | |
|---|
| 61 | <population id="GridOfSubNets" network="BaseNetwork"> <!-- network used instead of cell --> |
|---|
| 62 | <layout space="2D_discrete"> |
|---|
| 63 | <grid xSize="4" ySize="4"/> <!-- 4x4 grid of population units --> |
|---|
| 64 | </layout> |
|---|
| 65 | </population> |
|---|
| 66 | |
|---|
| 67 | <!-- Define sets --> |
|---|
| 68 | |
|---|
| 69 | <cellSet id="AllExcitatoryCells" select="GridOfSubNets/Excitatory"/> <!--simple version of XPath for selecting cells--> |
|---|
| 70 | <cellSet id="AllInhibitoryCells" select="GridOfSubNets/Inhibitory"/> |
|---|
| 71 | |
|---|
| 72 | <!-- Define connections based on the sets --> |
|---|
| 73 | |
|---|
| 74 | <projection id="RecurrentGlobalExc"> |
|---|
| 75 | <source set="AllExcitatoryCells"/> |
|---|
| 76 | <target set="AllExcitatoryCells"/> |
|---|
| 77 | <!-- Further elements needed here... --> |
|---|
| 78 | </projection> |
|---|
| 79 | |
|---|
| 80 | <!-- More... --> |
|---|
| 81 | |
|---|
| 82 | </network> |
|---|
| 83 | |
|---|
| 84 | </neuroml> |
|---|
| 85 | |
|---|
| 86 | |
|---|
| 87 | |
|---|
| 88 | |
|---|
| 89 | |
|---|
| 90 | |
|---|
| 91 | |
|---|
| 92 | |
|---|