neuroarch.na.NeuroArch.update_Synapse
- NeuroArch.update_Synapse(synapse, N=None, NHP=None, morphology=None, arborization=None, data_source=None)[source]
Update any property/data of a synapse.
- Parameters:
synapse (str or models.Synapse) – The synapse to be updated, speicified either by a mdoels.Synapse object, a str for its uname or a str starts with ‘#’ as the rid of OrientDB record ID.
N (int (optional)) – The number of synapses from pre_neuron to the post_neuron.
NHP (int (optional)) – The number of synapses that can be confirmed with a high probability
morphology (list of dict (optional)) – Each dict in the list defines a type of morphology of the neuron. Must be loaded from a file. The dict must include the following key to indicate the type of morphology: {‘type’: ‘swc’} For swc, required fields are [‘sample’, ‘identifier’, ‘x’, ‘y, ‘z’, ‘r’, ‘parent’]. For synapses, if both postsynaptic and presynaptic sites are available, x, y, z, r must each be a list where the first half indicate the locations/radii of postsynaptic sites (on the presynaptic neuron), and the second half indicate the locations/radii of the presynaptic sites (on the postsynaptic neuron). There should be a one-to-one relation between the first half and second half. parent must be a list of -1.
arborization (list of dict (optional)) – A list of dictionaries define the arborization pattern of the neuron in neuropils, subregions, and tracts, if applicable, with {‘type’: ‘neuropil’ or ‘subregion’ or ‘tract’, ‘synapses’: {‘EB’: 20, ‘FB’: 2}} Name of the regions must already be present in the database.
data_source (models.DataSource (optional)) – The datasource. If not specified, default DataSource will be used.
- Returns:
Whether the update was successful.
- Return type:
bool