implementation of the algorithm for clustering neurons by synapse location from Schlegel et al. (2016). Assumes neurons are scaled to microns.

clusterbysynapses(someneuronlist, sigma = 1, omega = sigma,
  symmetric = T, direction = c(0, 1, 2))

Arguments

someneuronlist

a neuronlist or neuron object

sigma

determines what distances between two synapses are considered close (defaults to 1 um)

omega

synapse cluster radius. Defaults to sigma.

symmetric

whether to return a symmetric matrix (average of scores between two neurons in both directions)

direction

cluster neurons by presynapses (0), postsynapses (1) or both (2)

...

additional arguments passed to methods.

Value

A matrix of similarity scores between inputted neurons, based on synapse positions.

See also