neuprint_simple_connectivity: Get a list of connected partners for a neuron

View source: R/connectivity.R

neuprint_simple_connectivityR Documentation

Get a list of connected partners for a neuron

Description

Get all of the neurons in the database that connect to the query neurons, either upstream or downstream of them

Usage

neuprint_simple_connectivity(
  bodyids,
  prepost = c("PRE", "POST"),
  dataset = NULL,
  conn = NULL,
  ...
)

Arguments

bodyids

the cypher by which to make your search

prepost

whether to look for partners presynaptic to postsynaptic to the given bodyids

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.

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.

...

methods passed to neuprint_login

Value

a n x m matrix where n correspond to the neurons that connect to m bodyids

See Also

neuprint_common_connectivity, neuprint_get_adjacency_matrix

Examples


da2s=neuprint_search(".*DA2.*")
neuprint_common_connectivity(da2s$bodyid)

inputs <- neuprint_simple_connectivity(5901222731, prepost='PRE')
head(inputs)
# top inputs
head(sort(table(inputs$type), decreasing = TRUE))
outputs <- neuprint_simple_connectivity(5901222731, prepost='POST')
head(outputs)

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