neuprint_get_synapses | R Documentation |
Get the xyz locations, IDs and confidences of pre- and post
synapses associated with a body. The connector_id
for each synapse
is for the 'presynaptic' object. Separate IDs exist for the postsynapses in
neuPrint, and these are not fetched b this function. This is similar to the
logic use in rcatmaid
.
neuprint_get_synapses(
bodyids,
roi = NULL,
remove.autapses = TRUE,
chunk = TRUE,
progress = NULL,
dataset = NULL,
conn = NULL,
...
)
bodyids |
the body IDs for neurons/segments (bodies) you wish to query.
This can be in any form understood by |
roi |
a ROI (i.e. neuropil volume) you want to query. Use
|
remove.autapses |
Whether to remove autaptic connections (default TRUE) from the results. It appears that there is a relatively high number of false positive autapses. |
chunk |
A logical specifying whether to split the query into multiple
chunks or an integer specifying the size of those chunks (which defaults to
20 when |
progress |
if TRUE, a progress bar will be shown. This may slow the data
fetching process for smaller queries (<100 body ids). The default of
|
dataset |
optional, a dataset you want to query. If NULL, the default
specified by your R environ file is used. See |
conn |
optional, a neuprintr connection object, which also specifies the
neuPrint server. If NULL, the defaults set in your
|
... |
methods passed to |
a data frame, where each row is a connection between one query
bodyid
and a single partner
neuron. The prepost
column
should be interpreted as follows:
prepost=0
a downstream or output partner,
postsynaptic to the query neuron
prepost=1
an upstream or input partner, presynaptic
to the query neuron
Each connection is associated with a synapse that has its own unique
connector_id
, XYZ coordinates and a confidence in its existence.
neuprint_fetch_custom
,
neuprint_simple_connectivity
,
neuprint_common_connectivity
syns=neuprint_get_synapses(c(818983130, 1796818119))
head(syns)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.