Get all of the paths in the database that connect the query
neurons with at least weightT
synapses at each step
neuprint_get_paths(
body_pre,
body_post,
n,
weightT = 5,
roi = NULL,
by.roi = FALSE,
exclude.loops = TRUE,
chunk = TRUE,
progress = FALSE,
dataset = NULL,
conn = NULL,
all_segments = FALSE,
...
)
the bodyid of the neuron at the start of the path
the bodyid of the neuron at the end of the path
the length of the path. If n
is a vector, paths of length
n[1] to n[2] are considered
weight threshold
Limit the search to connections happening within a certain ROI or set of ROIs (NULL by default)
Return the results by ROI. Default to FALSE
Whether or not to exclude loops (paths containing the same node several times). Defaults to TRUE
A logical specifying whether to split the query into multiple
chunks or an integer specifying the size of those chunks (which defaults
to 5 when chunk=TRUE
).
if TRUE, a progress bar will be shown. This may slow the data
fetching process for smaller queries. The default of
progress=NULL
will only show a progress bar if the query will be
split into multiple chunks based on the chunk
argument.
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.
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.
if TRUE, all bodies are considered, if FALSE, only 'Neurons', i.e. bodies with a status roughly traced status.
methods passed to neuprint_login
# \donttest{
neuprint_get_paths(c(1128092885,481121605),5813041365, n=c(1,2), weightT=20)
#> from to weight depth name.from name.to
#> 1 481121605 677182018 49 1 PFL1(PB12a)_L2_C3 FB2B_b_R
#> 2 677182018 5813041365 22 2 FB2B_b_R PFL1(PB12a)_L4_C5
#> type.from type.to
#> 1 PFL1 FB2B_b
#> 2 FB2B_b PFL1
neuprint_get_paths(c(1128092885,481121605),5813041365, n=c(1,2),
weightT=20,by.roi=TRUE)
#> from to weight depth name.from name.to
#> 1 481121605 677182018 49 1 PFL1(PB12a)_L2_C3 FB2B_b_R
#> 2 677182018 5813041365 22 2 FB2B_b_R PFL1(PB12a)_L4_C5
#> type.from type.to LX(R).post LAL(R).post LAL(-GA)(R).post INP.post
#> 1 PFL1 FB2B_b 48 48 48 1
#> 2 FB2B_b PFL1 0 0 0 0
#> CRE(R).post CRE(-ROB,-RUB)(R).post CX.post FB.post FBl2.post FBl3.post
#> 1 1 1 0 0 0 0
#> 2 0 0 22 22 21 1
neuprint_get_paths(c(1128092885,481121605),5813041365,
n=c(1,2), weightT=20,roi=c("FB","LAL(-GA)(R)"))
#> from to weight depth name.from name.to
#> 1 481121605 677182018 49 1 PFL1(PB12a)_L2_C3 FB2B_b_R
#> 2 677182018 5813041365 22 2 FB2B_b_R PFL1(PB12a)_L4_C5
#> type.from type.to FB.post LAL(-GA)(R).post
#> 1 PFL1 FB2B_b 0 48
#> 2 FB2B_b PFL1 22 0
# }