Given a neuron or skeleton ID, this function will look for outgoing connectors that are close enough to represent the same synapse. The function will return a data frame (optionally written to a CSV) with IDs of the identified connector pairs, their distances, and URLs to the connectors in CATMAID.
check_duplicate_synapses(neuron = NULL, skid = NULL, xy_threshold = 200, z_threshold = 200, fileout = NULL)
neuron | A CATMAID |
---|---|
skid | The skeleton ID of a neuron in CATMAID; required if |
xy_threshold | The maximum X-Y distance (in the same units as your neuron) between two connectors for them to be considered potential duplicates. Defaults to 200. |
z_threshold | The maximum Z distance (in the same units as your neuron) between two connectors for them to be considered potential duplicates. Defaults to 200. |
fileout | Optional; the path to a CSV file where the result should be written. |
A data frame containing the connector ID of each connector in a pair, a CATMAID URL for each, the X-Y and Z distances between the connectors, and the skeleton ID of the neuron.
Requires the catmaid.server
option to be set in .Rprofile