neuroarch.na.NeuroArch.add_Neuropil
- NeuroArch.add_Neuropil(name, synonyms=None, subsystem=None, morphology=None, data_source=None)[source]
Create a Neuropil record and link it to related node types.
- Parameters:
name (str) – Name of the neuropil (abbreviation is preferred, full name can be given in the synonyms)
synonyms (list of str) – Synonyms of the neuropil.
subsystem (str or models.Subsystem (optional)) – Subsystem that owns the neuropil. Can be specified either by its name or the Subsytem object instance.
morphology (dict (optional)) – Morphology of the neuropil boundary specified with a triangulated mesh, with fields ‘vertices’: a single list of float, every 3 entries specify (x,y,z) coordinates. ‘faces’: a single list of int, every 3 entries specify samples of vertices. Or, specify the file path to a json file that includes the definition of the mesh. Or, specify only a url which can be readout later on.
data_source (models.DataSource (optional)) – The datasource. If not specified, default DataSource will be used.
- Returns:
Created Neuropil object
- Return type: