Count the number of synapses one or more neurons make in each neuropil volume

synapses_per_neuropil(skids = NULL, neurons = NULL,
  reference = c("FAFB", "FCWB"))

Arguments

skids

A vector of skeleton IDs or an annotation query; required if neurons is not provided. Will only be used if neurons is not provided.

neurons

A neuron list; required if skids is not provided.

reference

The name of a reference brain to use. Currently accepts "FAFB", or "FCWB"; defaults to "FAFB".

Value

Returns a list containing one data frame for each neuron/skeleton ID provided. Each data frame will contain a row for each neuropil, with two columns indicating the number of outgoing and incoming synapses that the neuron has in that region.