neuprint_connectors: Get the IDs and 3D locations of the pre- and post- synapses...

View source: R/synapses.R

neuprint_connectorsR Documentation

Get the IDs and 3D locations of the pre- and post- synapses that make up a synaptic object

Description

Get synapse IDs for a given connector ID, as well as their associated body IDs and their locations in 3D space.

Usage

neuprint_connectors(
  connector_ids,
  all_segments = TRUE,
  conn = NULL,
  dataset = NULL,
  ...
)

Arguments

connector_ids

a vector of IDs (pre- or postsynapse IDs) for a synaptic connection object.

all_segments

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

conn

optional, a neuprintr connection object, which also specifies the neuPrint server. If NULL, the defaults set in your .Rprofile or .Renviron are used. See neuprint_login for details.

dataset

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

...

Additional arguments passed to neuprint_fetch_custom

Value

a data frame, where each entry gives the pre-post associations for a synapse. This includes which are the pre/post synaptic bodyids (neurons/fragments) and the location of these synapses in 3D space (likely raw voxel space).

See Also

neuprint_fetch_custom, neuprint_get_synapses

Examples


syns = neuprint_get_synapses(818983130) # note
# all given connectorIDs from this function are for presynapses
prepost.conn = neuprint_connectors(syns$connector_id, all_segments = TRUE)
head(prepost.conn) # All the synapses that connect to or from 818983130
# and their other connections to other bodies too


natverse/neuprintr documentation built on Sept. 15, 2023, 6:59 a.m.