neuprint_assign_connectors: Assign synapses to a neuronal tree

Description Usage Arguments Value See Also

View source: R/neurons.R

Description

Fetch the synapses associated with a bodyid and assign them to the nearest point in the skeleton. For this to work, the skeletons must be in the same brainspace as the synaptic data being pulled from neuprint. I.e. do not transform them to another brainspace, until after this step.

For some datasets, somata positions have been mapped to pixels within a soma volume in the image data. If your bodyids contain such an annotated pixel, you can retrieve its position.

Usage

1
2
3
4
5
neuprint_assign_connectors(x, bodyids = NULL, dataset = NULL,
  conn = NULL, ...)

neuprint_locate_soma(bodyids, dataset = NULL, all_segments = TRUE,
  conn = NULL, ...)

Arguments

x

either an object of class neuron, or neuronlist

bodyids

the body IDs for neurons/segments (bodies) you wish to query

dataset

optional, a dataset you want to query. If NULL, the default specified by your R environ file is used. See neuprint_login for details.

conn

optional, a neuprintr connection object, which also specifies the neuPrint server see ?neuprint_login. If NULL, your defaults set in your R.profile or R.environ are used.

...

methods passed to neuprint_login

all_segments

if TRUE, all bodies are considered, if FALSE, only 'Neurons', i.e. bodies with a status roughly traced status.

Value

a neuron/neuronlist object as dictated used by the nat and rcatmaid packages

a data frame of X,Y,Z coordinates, a row for each bodyid supplied

See Also

neuprint_fetch_custom, neuprint_get_synapses, neuprint_read_neurons

neuprint_fetch_custom, neuprint_get_synapses, neuprint_read_neurons


alexanderbates/neuprintr documentation built on May 28, 2019, 6:11 p.m.