neuprint_simple_connectivity | R Documentation |
Get all of the neurons in the database that connect to the query neurons, either upstream or downstream of them
neuprint_simple_connectivity(
bodyids,
prepost = c("PRE", "POST"),
dataset = NULL,
conn = NULL,
...
)
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 |
conn |
optional, a neuprintr connection object, which also specifies the
neuPrint server. If NULL, the defaults set in your
|
... |
methods passed to |
a n x m matrix where n correspond to the neurons that connect to m bodyids
neuprint_common_connectivity
,
neuprint_get_adjacency_matrix
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)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.